! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
[PATCH] Rework save setting: save only on quit program
Status:
RESOLVED: FIXED
Product:
Xfce4-taskmanager
Component:
General

Comments

Description Ivan 83 2019-03-22 01:57:20 CET
Created attachment 8352 
patch

1. Settings file was multiple times owerwritten on setting load.
2. Window size, sort colum, sort order and paned position saved only if main window was closed before user click QUIT in tray menu.
3. Settings writed out to file every time than user change sometnig (exept p. 2).
Comment 1 Landry Breuil editbugs 2019-03-26 08:01:41 CET
please separate the style/cosmetic/indentation changes from the actual behaviour changes.. and try to respect the style of the existing code wrt indentation/line breaks :)

also i'm not sure deferring settings saving at application close is a good idea, as if taskman crashes for whatever reason, then the modified settings are lost.
Comment 2 Ivan 83 2019-05-20 11:34:42 CEST
Created attachment 8551 
patch update

Probably new description is: rework setting save to not flood to setting file :)
Comment 3 Landry Breuil editbugs 2019-05-20 20:41:20 CEST
Why the need for settings->loading ? have you seen race conditions between settings saving and loading at startup ?
Comment 4 Ivan 83 2019-05-20 20:45:38 CEST
Because on settings apply it save it every time to file. settings->loading prevents save setting on load.
Comment 5 Git Bot editbugs 2019-05-21 19:52:55 CEST
rim referenced this bugreport in commit be159c9a69c5b17dc9dacdda93590f33865a8bcd

Improve settings saving (bug #15213)

https://git.xfce.org/apps/xfce4-taskmanager/commit?id=be159c9a69c5b17dc9dacdda93590f33865a8bcd
Comment 6 Landry Breuil editbugs 2019-05-21 20:00:04 CEST
tested working fine, thanks !
Comment 7 Andre Miranda editbugs 2019-12-20 20:03:37 CET
This caused a regression: now taskmanager doesn't close when esc is pressed.

Bug #15213

Reported by:
Ivan 83
Reported on: 2019-03-22
Last modified on: 2019-12-20

People

Assignee:
Mike Massonnet
CC List:
3 users

Version

Attachments

patch (9.40 KB, patch)
2019-03-22 01:57 CET , Ivan 83
no flags
patch update (9.61 KB, patch)
2019-05-20 11:34 CEST , Ivan 83
rozhuk.im : review?

Additional information