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

Settings: button "Apply" would be nice to have #16

Closed
pmattern opened this issue Jun 22, 2016 · 13 comments
Closed

Settings: button "Apply" would be nice to have #16

pmattern opened this issue Jun 22, 2016 · 13 comments
Assignees
Labels
Milestone

Comments

@pmattern
Copy link
Contributor

It would be very nice if dialogue "Settings" featured the usual button "Apply". That is, a button which applies the current settings without closing the dialogue.
Button "OK" involves closing the dialogue which isn't really convenient, in particular when using RSS Guard for the first time and exploring its various options.

@martinrotter martinrotter self-assigned this Jun 22, 2016
@martinrotter martinrotter added this to the 3.3.1 milestone Jun 22, 2016
@martinrotter
Copy link
Owner

Problem is, that settings infrastructure currently does not provide any way to tell whether currently selected options are saved and if there is some option changed. Thus, when user would hit "Apply" and then "OK", settings would be actually saved twice. So, basically, it would work, but internally it is not ideal.

@pmattern
Copy link
Contributor Author

Would saving twice yield any manifest problem then? Otherwise I'd assume the advantage in practice outweighs the not so nice technical implementation.

@martinrotter
Copy link
Owner

No, it would not produce any bugs. I will add "Apply" and tweak the underlying implementation logic in the future.

@martinrotter martinrotter modified the milestones: 3.3.2, 3.3.1 Jun 28, 2016
@xmstspider
Copy link

Hi Martin,

Just to add an idea how this usually works.
An user changes some options:
A. If he/she presses Apply, the settings are saved, the OK then simply closes the dialog
B. If he/she presses OK first, a new dialog appears asking for saving or discarding the changes made (may have Apply/Discard buttons).
C. If he/she presses Cancel, nothing will change (as usual)

@martinrotter
Copy link
Owner

@xmstspider Thanks for clarification.

@pmattern
Copy link
Contributor Author

pmattern commented Jun 30, 2016

Just to add an idea how this usually works.

Hm, are you sure?
Personally, I'm only aware of behaviour like this if it comes to closing modified documents.
But I've never seen any such thing regarding settings dialogues. The only behaviour I'm aware of is "OK" → save current settings and close dialogue without further query, "Apply" → apply current settings but leave dialogue open and "Cancel" → close dialogue discarding any changes that were made before. And tbh. I think this makes more sense.

@xmstspider
Copy link

Yes, at least some settings centers like KDE Settings or similar in IDEs. They ask whenever you try to close the window or change the tab. It is more dummy-proof as you won't lose the changes when accidentally clicks on different tab/item/whatever...

But that's just an idea, it's up to you how do you want it ;-)

@pmattern
Copy link
Contributor Author

It's true that System Settings of KDE are behaving that way. But these are a different kind of beast.
Just had another look: Buttons "OK" in the settings dialogues of LibreOffice, QupZilla, Otter Browser, FatRat, Gimp and SMPlayer as well as in the account settings of Thunderbird all save the current settings and close the dialogue without any querying. On the other hand I couldn't find a single application where hitting "OK" triggers some query. (A lot of applications are implementing some apply-on-change policy which is pretty stupid, IMO, and irrelevant for what we're discussing here anyway.)

So while this is certainly a matter of taste I really don't think the proposed behaviour can be called usual as far as settings dialogues of applications are concerned.

@martinrotter
Copy link
Owner

Yes, at least some settings centers like KDE Settings or similar in IDEs
Exactly, I remembered KDE when reading your lines. It works like you said.

But on Windows, on the other hand, almost no SW I saw behaves like

B. If he/she presses OK first, a new dialog appears asking for saving or discarding the changes made (may have Apply/Discard buttons).

I would go more standard way:

  • OK -> settings are saved (if changed), dialog is closed.
  • APPLY -> settings are save (if changed).

@xmstspider
Copy link

No problem, it was just an idea :-)

@martinrotter martinrotter modified the milestones: 3.3.3, 3.3.2 Jul 22, 2016
@martinrotter
Copy link
Owner

Will keep this as main feature for 3.3.3, which will be just bug fix release otherwise.

@pmattern
Copy link
Contributor Author

pmattern commented Aug 2, 2016

Works as expected, thanks for implementing.

Changing the language at Settings - Language doesn't get applied by hitting Apply but restarting RSS Guard only.
This is absolutely normal behaviour. But would a little popup informing users possibly make sense?

@martinrotter
Copy link
Owner

Changing the language at Settings - Language doesn't get applied by hitting Apply but restarting RSS Guard only.

Yes the "restart warning" should popup, but maybe I missed it when transitioning the code to new approach. Will fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants