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

4226 bug image resize parameters in web gui are not saved and revert to 0 #4230

Conversation

EricClaeys
Copy link
Collaborator

Fixes #4266

makeChanges.sh can then use the value rather than having to look in the settings file for every setting.
It's more efficient to have convertJSON.php do it, since it already read the settings file.
They make the invoker's code a little cleaner.
* It already allowed for that, but it's more obvious now with variable names that reflect it.
* use o_, w_, e_, and d_ functions.
* See comments for why.
* Also, rename script to updateJsonFile.sh
Also rename a variable so it better reflects what it is, and shorten a message.
Handling width and height settings at same time is more efficient and produces only a single error message when needed.

Also:
* Centralize restoring code in restoreSettings()
* Use updateJsonFile.sh to make multiple updates instead of separate update_json_file()'s
Can update CHANGES() in a "read" subshell.

Do some shellcheck fixes
0 pixels means the default should be used
@EricClaeys EricClaeys merged commit 91538ad into v2024.12.06_01 Jan 22, 2025
1 check passed
@EricClaeys EricClaeys deleted the 4226-bug-image-resize-parameters-in-web-gui-are-not-saved-and-revert-to-0 branch February 8, 2025 22:56
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.

1 participant