mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't close config file when changing preferences
On Linux and MacOS the subsurface_close_conf() doesn't really close the config file (it flushes writes on MacOS), but on Windows it does actually close the registry hkey. Which is bad, if you change the settings multiple times - we assume that the config file is open the whole time. So add a "subsurface_flush_conf()" function, and call *that* when changing configuration parameters. And call the close function only at the very end. Alternatively, maybe we should just open the config file separately every time. I don't much care, maybe somebody else does. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
2d1a316d84
commit
725e4582d9
7 changed files with 28 additions and 3 deletions
1
dive.h
1
dive.h
|
|
@ -317,6 +317,7 @@ extern void add_event(struct dive *dive, int time, int type, int flags, int valu
|
|||
extern void init_ui(int *argcp, char ***argvp);
|
||||
|
||||
extern void run_ui(void);
|
||||
extern void exit_ui(void);
|
||||
|
||||
extern void report_error(GError* error);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue