mac: No need for launch args to be public static

This commit is contained in:
Hylke Bons 2016-11-06 11:35:53 +00:00
parent 3cc74f096d
commit d997a04f7a
2 changed files with 3 additions and 6 deletions

View file

@ -26,7 +26,6 @@ namespace SparkleShare {
public static Controller Controller;
public static UserInterface UI;
public static string [] Arguments;
static Mutex program_mutex = new Mutex (false, "SparkleShare");
@ -36,8 +35,6 @@ namespace SparkleShare {
#endif
public static void Main (string [] args)
{
Arguments = args;
if (args.Length != 0 && (args [0].Equals ("help") || args [0].Equals ("version")) &&
InstallationInfo.OperatingSystem != OS.Mac &&
InstallationInfo.OperatingSystem != OS.Windows) {
@ -69,7 +66,7 @@ namespace SparkleShare {
Controller.Initialize ();
UI = new UserInterface ();
UI.Run ();
UI.Run (args);
#if !__MonoCS__
// Suppress assertion messages in debug mode

View file

@ -49,9 +49,9 @@ namespace SparkleShare {
}
public void Run ()
public void Run (string [] args)
{
NSApplication.Main (SparkleShare.Arguments);
NSApplication.Main (args);
}