Remove fancy window hiding and use old app icon
This commit is contained in:
parent
721760852e
commit
2f882f11d5
@ -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 |
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user