[Commits] [SCM] clawsker branch, master, updated. 1.3.0-2-gabb30ef

mones at claws-mail.org mones at claws-mail.org
Thu Dec 13 19:54:28 CET 2018


The branch, master has been updated
       via  abb30efb07f451fe1b633cc76f873d93b907bd89 (commit)
      from  5d2fe62027eb3ef1f31600f0f55a504a0e45969b (commit)

Summary of changes:
 clawsker |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit abb30efb07f451fe1b633cc76f873d93b907bd89
Author: Ricardo Mones <ricardo at mones.org>
Date:   Thu Dec 13 19:54:21 2018 +0100

    Checking once before saving is enough

diff --git a/clawsker b/clawsker
index cda416d..6fbebe7 100755
--- a/clawsker
+++ b/clawsker
@@ -2526,7 +2526,6 @@ sub save_rc_preferences {
     my $rc = get_rc_filename ();
     log_message ("Saving preferences to $rc\n");
     return FALSE unless check_rc_file ($rc);
-    return FALSE unless check_claws_not_running ();
     return FALSE unless backup_resource ($rc);
     foreach (keys %PREFS) {
         if (defined $HPVALUE{$_}) {
@@ -2548,7 +2547,6 @@ sub save_ac_preferences {
     my $rc = get_ac_rc_filename ();
     log_message ("Saving account preferences to $rc\n");
     return FALSE unless check_rc_file ($rc);
-    return FALSE unless check_claws_not_running ();
     return FALSE unless backup_resource ($rc);
     foreach my $asect (keys %$ACCOUNTDATA) {
         if ($asect =~ /^Account: (\d+)$/) {
@@ -2567,13 +2565,13 @@ 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 ();
     return FALSE unless backup_resource ($rc);
     save_menurc ($rc, $HOTKEYS);
     return TRUE;
 }
 
 sub save_preferences {
+    return FALSE unless check_claws_not_running ();
     my $result = save_rc_preferences ()
         and save_ac_preferences ()
         and save_hk_preferences ();

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


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


More information about the Commits mailing list