[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Don't continue to ask to start xfpm if the user cancels

noreply at xfce.org noreply at xfce.org
Sun Aug 17 14:32:10 CEST 2014


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit 6e4a6e5726cce281a64e467ba14a77b710fffc6f
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Sun Aug 17 15:29:42 2014 +0300

    Don't continue to ask to start xfpm if the user cancels
    
    If xfpm isn't running when the settings app is launched, a dialog
    pops up asking if the user would like to launch xfpm. If the user
    clicks cancel on that dialog, the dialog pops up again (and again).
    This patch changes it so that it won't nag the user over and over.
---
 settings/xfpm-settings-main.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/settings/xfpm-settings-main.c b/settings/xfpm-settings-main.c
index 9155f26..c27208a 100644
--- a/settings/xfpm-settings-main.c
+++ b/settings/xfpm-settings-main.c
@@ -124,6 +124,11 @@ int main (int argc, char **argv)
 	    /* wait 2 seconds for xfpm to startup */
 	    g_usleep ( 2 * 1000000 );
 	}
+	else
+	{
+	    /* continue without starting xfpm, this will probably error out */
+	    break;
+	}
     }
 
     unique = xfpm_unique_new ("org.xfce.PowerManager.Config");

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list