Remove fancy window hiding and use old app icon

This commit is contained in:
Melon 2021-03-24 10:19:13 +00:00
parent 721760852e
commit 2f882f11d5
3 changed files with 3 additions and 13 deletions

View File

@ -313,19 +313,8 @@ public partial class MainWindow : Window
// Try hiding the window // Try hiding the window
Iconify(); Iconify();
SkipPagerHint = true; SkipPagerHint = true;
SkipTaskbarHint = true; SkipTaskbarHint = true;
Visible = false;
// Changing the visible property needs to be
// delayed for the window to start minimizing
Thread thread = new Thread(() =>
{
Thread.Sleep(100);
Visible = false;
})
{
IsBackground = true
};
thread.Start();
UpdateTrayMenu(); UpdateTrayMenu();
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -4,6 +4,7 @@
<images-root-path>..</images-root-path> <images-root-path>..</images-root-path>
</configuration> </configuration>
<import> <import>
<widget-library name="glade-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
<widget-library name="../net-libs/appindicator3-sharp.dll" /> <widget-library name="../net-libs/appindicator3-sharp.dll" />
<widget-library name="../bin/Debug/MelonVPNClient.exe" internal="true" /> <widget-library name="../bin/Debug/MelonVPNClient.exe" internal="true" />
</import> </import>