Skip to content

Commit

Permalink
Added check for numbers of accounts loaded
Browse files Browse the repository at this point in the history
If we have no accounts added then we should not run, huh. :)
  • Loading branch information
Casper committed Jul 23, 2016
1 parent b89c152 commit 1dd2828
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Binary file modified .vs/HourBoostr/v14/.suo
Binary file not shown.
15 changes: 11 additions & 4 deletions HourBoostr/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,18 @@ static void Main(string[] args)
var settings = Settings.GetSettings();
if (settings != null)
{
mSession = new Session(settings);
if (settings.HideToTrayAutomatically)
if (settings.Accounts.Count > 0)
{
mTrayIcon.ShowBalloonTip(1000, "HourBoostr", "I'm down here!", ToolTipIcon.Info);
ShowConsole(false);
mSession = new Session(settings);
if (settings.HideToTrayAutomatically)
{
mTrayIcon.ShowBalloonTip(1000, "HourBoostr", "I'm down here!", ToolTipIcon.Info);
ShowConsole(false);
}
}
else
{
Console.WriteLine("No accounts added! We got nothing to boost.");
}

while (true)
Expand Down
Binary file modified HourBoostrJsonHelper/.vs/HourBoostrJsonHelper/v14/.suo
Binary file not shown.

0 comments on commit 1dd2828

Please sign in to comment.