Skip to content

fix: Disable the save button when config not writable - #8592

Merged
nbolton merged 1 commit into
masterfrom
ro-disable-save
May 19, 2025
Merged

fix: Disable the save button when config not writable#8592
nbolton merged 1 commit into
masterfrom
ro-disable-save

Conversation

@nbolton

@nbolton nbolton commented May 12, 2025

Copy link
Copy Markdown
Member

Todo:

  • Test

@nbolton
nbolton force-pushed the ro-disable-save branch from 0421eb1 to 6a907f7 Compare May 15, 2025 16:33
@nbolton
nbolton marked this pull request as ready for review May 15, 2025 16:37
@nbolton

nbolton commented May 15, 2025

Copy link
Copy Markdown
Member Author

I noticed if I make the file read only, then only the preferences are shown as read only.

I do wonder if we can simplify all of this by showing an error on save or even on load if the settings are read only:

Your settings are read-only and you will be unable to save your settings, please check your permissions.

@nbolton
nbolton requested a review from sithlord48 May 15, 2025 16:39
Comment thread src/lib/gui/dialogs/SettingsDialog.cpp Outdated
@nbolton
nbolton force-pushed the ro-disable-save branch 2 times, most recently from aed4cd8 to fe892c6 Compare May 19, 2025 20:20
@nbolton
nbolton requested a review from sithlord48 May 19, 2025 20:20

@sithlord48 sithlord48 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok

@nbolton
nbolton force-pushed the ro-disable-save branch from fe892c6 to 8172fe5 Compare May 19, 2025 20:46
@nbolton
nbolton enabled auto-merge (rebase) May 19, 2025 20:46
@nbolton
nbolton merged commit 34f6186 into master May 19, 2025
@nbolton
nbolton deleted the ro-disable-save branch May 19, 2025 21:10
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