mirror of
https://github.com/DarthAffe/KeyboardAudioVisualizer.git
synced 2025-12-12 15:18:30 +00:00
Added a workaround for the weird windows taskbar-closewindow behavior
This commit is contained in:
parent
8d1488db24
commit
940d2eb631
@ -17,7 +17,8 @@
|
||||
Title="Keyboard Audio-Visualizer # Configuration"
|
||||
Icon="pack://application:,,,/KeyboardAudioVisualizer;component/Resources/Icon.ico"
|
||||
IconCommand="{Binding OpenHomepageCommand}"
|
||||
Width="1280" Height="720">
|
||||
Width="1280" Height="720"
|
||||
Closed="ConfigurationWindow_OnClosed">
|
||||
|
||||
<controls:BlurredDecorationWindow.Resources>
|
||||
<styles:CachedResourceDictionary>
|
||||
|
||||
@ -1,9 +1,16 @@
|
||||
using KeyboardAudioVisualizer.Controls;
|
||||
using System;
|
||||
using KeyboardAudioVisualizer.Controls;
|
||||
|
||||
namespace KeyboardAudioVisualizer.UI
|
||||
{
|
||||
public partial class ConfigurationWindow : BlurredDecorationWindow
|
||||
{
|
||||
public ConfigurationWindow() => InitializeComponent();
|
||||
|
||||
//DarthAffe 07.02.2018: This prevents the applicaiton from not shutting down and crashing afterwards if 'close' is selected in the taskbar-context-menu
|
||||
private void ConfigurationWindow_OnClosed(object sender, EventArgs e)
|
||||
{
|
||||
ApplicationManager.Instance.ExitCommand.Execute(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user