Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add version number to CLI save filename #1590

Merged
merged 2 commits into from
Aug 22, 2022

Conversation

MrD-RC
Copy link
Collaborator

@MrD-RC MrD-RC commented Jul 29, 2022

This PR adds the version number to the CLI filename.

The version number is very handy for keeping track of the diff and dump saves. To be honest, I got bored of adding it all the time manually 😉

This PR adds the version number to the CLI filename. It also adds a secondary way to get the data from the FC if it is out of range. If it fails, it appears as the previous save filename looked.
@MrD-RC MrD-RC added this to the 5.1 milestone Jul 29, 2022
js/helpers.js Outdated
if (CONFIG.name && CONFIG.name.trim() !== '') {
filename = filename + '_' + CONFIG.name.trim().replace(' ', '_');
}
} else {
// Attempt to get the version number and
MSPHelper.getSetting("version").then(function (data) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MrD-RC are you sure this even works? When CLI is on, MSP on that port no longer works

Copy link
Collaborator Author

@MrD-RC MrD-RC Aug 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test 1: Same version
image

Test 2: 4.1.0
image

Test 3:
image

You're right. It's using CONFIG each time.

@MrD-RC MrD-RC requested a review from DzikuVx August 15, 2022 17:03
@DzikuVx DzikuVx merged commit c19ae40 into release_5.1.0 Aug 22, 2022
@DzikuVx DzikuVx deleted the MrD_Add-version-number-to-CLI-save-filename branch August 22, 2022 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants