Added config-entry to disable try-minimization.

This fixes #11
This commit is contained in:
DarthAffe committed 2018-12-02 13:52:03 +01:00
1 parent bd5267b2ca
commit a4e72347a0
5 files changed
+31 -2

No files matched your search

+1 -1
View File
@@ -76,7 +76,7 @@ namespace RGBSyncPlus.Controls
closeButton.Click += (sender, args) => ApplicationManager.Instance.ExitCommand.Execute(null);
if (GetTemplateChild("PART_MinimizeButton") is Button minimizeButton)
minimizeButton.Click += (sender, args) => Hide();
minimizeButton.Click += (sender, args) => ApplicationManager.Instance.HideConfigurationCommand.Execute(null); //HACK DarthAffe 02.12.2018: This is a really dirty hack - hopefully this will never get more than one window ...
if (GetTemplateChild("PART_IconButton") is Button iconButton)
iconButton.Click += (sender, args) => IconCommand?.Execute(null);