Add 'save' command to save preferences

Most applications have an 'apply changes' button. This makes testing
easier too.

Implement https://github.com/profanity-im/profanity/issues/1164
This commit is contained in:
Michael Vetter
2019-08-02 10:23:13 +02:00
parent d4150eb7d1
commit 658e36a066
6 changed files with 34 additions and 46 deletions

View File

@@ -2,6 +2,7 @@
* preferences.h
*
* Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com>
* Copyright (C) 2019 Michael Vetter <jubalh@iodoru.org>
*
* This file is part of Profanity.
*
@@ -166,6 +167,7 @@ typedef struct prof_winplacement_t {
} ProfWinPlacement;
void prefs_load(void);
void prefs_save(void);
void prefs_close(void);
char* prefs_find_login(char *prefix);