Skip to content

Commit

Permalink
[#] fixed default startup monitor mode
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyadanli committed May 18, 2021
1 parent a6a8671 commit ee24565
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions PasteEx/Util/CLIHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,25 +166,30 @@ public void Execute()
}
else
{
// Client.Start();
if (!RightMenu.Init())
{
return;
}
if (Properties.Settings.Default.DefaultStartupMonitorModeEnabled)
{
// Monitor Mode Entrance 2
ApplicationHelper.StartSelf(CLIParams.MONITOR, false);
return;
}
else
{
Application.Run(new FormMain());
}
NoParamStart();
}
}
}
else
{
NoParamStart();
}
}

private void NoParamStart()
{
// Client.Start();
if (!RightMenu.Init())
{
return;
}
if (Properties.Settings.Default.DefaultStartupMonitorModeEnabled)
{
// Monitor Mode Entrance 2
ApplicationHelper.StartSelf(CLIParams.MONITOR, false);
return;
}
else
{
Application.Run(new FormMain());
}
Expand Down

0 comments on commit ee24565

Please sign in to comment.