mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 23:56:21 +00:00
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:
@@ -2,6 +2,7 @@
|
||||
* cmd_funcs.c
|
||||
*
|
||||
* Copyright (C) 2012 - 2019 James Booth <boothj5@gmail.com>
|
||||
* Copyright (C) 2019 Michael Vetter <jubalh@iodoru.org>
|
||||
*
|
||||
* This file is part of Profanity.
|
||||
*
|
||||
@@ -8535,3 +8536,12 @@ cmd_omemo_policy(ProfWin *window, const char *const command, gchar **args)
|
||||
return TRUE;
|
||||
#endif
|
||||
}
|
||||
|
||||
gboolean
|
||||
cmd_save(ProfWin *window, const char *const command, gchar **args)
|
||||
{
|
||||
log_info("Saving preferences to configuration file");
|
||||
cons_show("Saving preferences.");
|
||||
prefs_save();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user