diff --git a/src/net/java/sip/communicator/impl/gui/utils/ConfigurationManager.java b/src/net/java/sip/communicator/impl/gui/utils/ConfigurationManager.java
index 251a9a663..d9b4bc823 100644
--- a/src/net/java/sip/communicator/impl/gui/utils/ConfigurationManager.java
+++ b/src/net/java/sip/communicator/impl/gui/utils/ConfigurationManager.java
@@ -31,11 +31,16 @@ public class ConfigurationManager
private static boolean isApplicationVisible = true;
+ private static boolean isApplicationVisibleSaved = false;
+
private static boolean isSendTypingNotifications = true;
private static ConfigurationService configService
= GuiActivator.getConfigurationService();
+ /**
+ *
+ */
public static void loadGuiConfigurations()
{
// Load the "auPopupNewMessage" property.
@@ -79,6 +84,16 @@ public static void loadGuiConfigurations()
isApplicationVisible = new Boolean(isVisible).booleanValue();
}
+ // Load the "showApplicationSaved" property.
+ String isVisibleSaved = configService.getString(
+ "net.java.sip.communicator.impl.systray.showApplicationSaved");
+
+ if(isVisible != null && isVisible != "")
+ {
+ isApplicationVisibleSaved
+ = new Boolean(isVisibleSaved).booleanValue();
+ }
+
// Load the "sendTypingNotifications" property.
String isSendTypingNotif = configService.getString(
"net.java.sip.communicator.impl.gui.sendTypingNotifications");
@@ -138,6 +153,18 @@ public static boolean isApplicationVisible()
return isApplicationVisible;
}
+ /**
+ * Return TRUE if "showApplicationSaved" property is true, otherwise -
+ * return FALSE. Indicates to the user interface whether the main
+ * application window should shown or hidden on startup.
+ * @return TRUE if "showApplicationSaved" property is true, otherwise -
+ * return FALSE.
+ */
+ public static boolean isApplicationVisibleSaved()
+ {
+ return isApplicationVisibleSaved;
+ }
+
/**
* Return TRUE if "sendTypingNotifications" property is true, otherwise -
* return FALSE. Indicates to the user interface whether typing
@@ -229,6 +256,22 @@ public static void setApplicationVisible(boolean isVisible)
new Boolean(isVisible));
}
+ /**
+ * Updates the "showApplicationSaved" property through the
+ * ConfigurationService.
+ *
+ * @param isSaved true to indicate that the
+ * application visible property is saved, false otherwise.
+ */
+ public static void setApplicationVisibleSaved(boolean isSaved)
+ {
+ isApplicationVisibleSaved = isSaved;
+
+ configService.setProperty(
+ "net.java.sip.communicator.impl.systray.showApplicationSaved",
+ new Boolean(isSaved));
+ }
+
/**
* Updates the "sendTypingNotifications" property through the
* ConfigurationService.