[Commits] [SCM] clawsker branch, master, updated. 1.0.1-29-geb162da

mones at claws-mail.org mones at claws-mail.org
Sat Mar 11 17:25:40 CET 2017


The branch, master has been updated
       via  eb162da101add4e8396b6bad42b6ddbfcee4f49b (commit)
      from  9c189e04f81f04e0cdc4abfd49728b397e2919c5 (commit)

Summary of changes:
 clawsker |   10 ++++++++++
 1 file changed, 10 insertions(+)


- Log -----------------------------------------------------------------
commit eb162da101add4e8396b6bad42b6ddbfcee4f49b
Author: Ricardo Mones <ricardo at mones.org>
Date:   Sat Mar 11 17:25:23 2017 +0100

    Save hotkeys to config

diff --git a/clawsker b/clawsker
index 0b547c7..0be22aa 100755
--- a/clawsker
+++ b/clawsker
@@ -2625,6 +2625,15 @@ sub save_ac_preferences {
     return TRUE;
 }
 
+sub save_hk_preferences {
+    my $rc = get_menurc_filename ();
+    log_message ("Saving hotkey preferences to $rc\n");
+    return FALSE unless check_rc_file ($rc);
+    return FALSE unless check_claws_not_running ();
+    save_menurc ($rc, $HOTKEYS);
+    return TRUE;
+}
+
 # create notebook
 sub new_notebook {
     my $nb = Gtk2::Notebook->new;
@@ -2701,6 +2710,7 @@ sub new_button_box {
     $b_apply->signal_connect (clicked => sub {
         save_preferences ($parent);
         save_ac_preferences ($parent);
+        save_hk_preferences ($parent);
     });
     # $b_undo->signal_connect (clicked => sub { undo_current_changes });
     $b_about->signal_connect (clicked => sub { $adlg->run; $adlg->hide });

-----------------------------------------------------------------------


hooks/post-receive
-- 
Hidden preferences editor for Claws Mail


More information about the Commits mailing list