Remove Debug Menu from CASAManager. CASAManager.exe -debug enables it
This commit is contained in:
@@ -95,6 +95,7 @@ public class CasaMain
|
||||
|
||||
|
||||
public static CasaTray mCasaTray = null;
|
||||
public static bool m_bShowDebug = false;
|
||||
|
||||
|
||||
///#######################################################################
|
||||
@@ -114,6 +115,10 @@ public class CasaMain
|
||||
|
||||
if (args.Length > 0)
|
||||
{
|
||||
|
||||
if (Common.IsArgSet(args, Common.ARG_DEBUG))
|
||||
m_bShowDebug = true;
|
||||
|
||||
if (Common.IsTrayAvailable() && Common.IsArgSet(args, Common.ARG_SHOW_TRAY_ICON))
|
||||
{
|
||||
mCasaTray = new CasaTray();
|
||||
@@ -130,6 +135,8 @@ public class CasaMain
|
||||
{
|
||||
new CasaMain(args);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Application.Run();
|
||||
|
||||
@@ -174,6 +181,12 @@ public class CasaMain
|
||||
|
||||
gxml = new Glade.XML(Common.GladeFile, "windowMain", null);
|
||||
gxml.Autoconnect(this);
|
||||
|
||||
if (!m_bShowDebug)
|
||||
mmiDebug.Hide();
|
||||
|
||||
|
||||
|
||||
windowMain.DeleteEvent += new DeleteEventHandler(OnWindowMainDeleted);
|
||||
|
||||
/// PLATFORM SPECIFIC GUI CHANGES
|
||||
@@ -1091,7 +1104,7 @@ public class CasaMain
|
||||
|
||||
#if LINUX
|
||||
// TODO check startup script for the user.
|
||||
return false;
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -85,6 +85,7 @@ public class Common
|
||||
///##############################################################
|
||||
/// ARG CONSTANTS
|
||||
public static string ARG_SHOW_TRAY_ICON = "-tray";
|
||||
public static string ARG_DEBUG = "-debug";
|
||||
|
||||
///#############################################################
|
||||
///CasaIcons path
|
||||
|
||||
Reference in New Issue
Block a user