Minimize main form on startup if the 'Minimize To Tray' option is active

This commit is contained in:
Anton Kasyanov
2016-06-09 01:35:16 +03:00
parent 9d08f255f7
commit 6c11b2ea95
4 changed files with 145 additions and 21 deletions

View File

@@ -54,13 +54,17 @@ namespace EveOPreview.UI
{
this.LoadApplicationSettings();
this.View.SetForumUrl(MainPresenter.ForumUrl);
if (this._configuration.MinimizeToTray)
{
this.View.Minimize();
}
this._thumbnailManager.Activate();
}
private void Minimize()
{
if (!this.View.MinimizeToTray)
if (!this._configuration.MinimizeToTray)
{
return;
}