Unsubscribe from theme change event to prevent memory leaks

This commit is contained in:
DB P 2025-05-14 13:03:31 +09:00
parent f0aa285199
commit 1e51bdc37b

View file

@ -1184,6 +1184,7 @@ namespace Flow.Launcher
_notifyIcon?.Dispose();
animationSoundWMP?.Close();
animationSoundWPF?.Dispose();
ModernWpf.ThemeManager.Current.ActualApplicationThemeChanged -= ThemeManager_ActualApplicationThemeChanged;
SystemEvents.PowerModeChanged -= SystemEvents_PowerModeChanged;
}