[tomboy] Make Tomboy.IsPanelApplet give an accurate value as early as possible.



commit 95f9483d9adcbe20cc6782e49aae9187543f8c60
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Mon May 25 06:56:31 2009 -0700

    Make Tomboy.IsPanelApplet give an accurate value as early as possible.
---
 Tomboy/Tomboy.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Tomboy/Tomboy.cs b/Tomboy/Tomboy.cs
index efddbde..8147d76 100644
--- a/Tomboy/Tomboy.cs
+++ b/Tomboy/Tomboy.cs
@@ -36,6 +36,7 @@ namespace Tomboy
 
 			TomboyCommandLine cmd_line = new TomboyCommandLine (args);
 			debugging = cmd_line.Debug;
+			is_panel_applet = cmd_line.UsePanelApplet;
 
 #if ENABLE_DBUS || WIN32 || MAC // Run command-line earlier with DBus enabled
 			if (cmd_line.NeedsExecute) {
@@ -79,9 +80,8 @@ namespace Tomboy
 			}
 #endif
 
-			if (cmd_line.UsePanelApplet) {
+			if (is_panel_applet) {
 				tray_icon_showing = true;
-				is_panel_applet = true;
 
 				// Show the Close item and hide the Quit item
 				am ["CloseWindowAction"].Visible = true;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]