mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 11:17:53 +01:00
Fix for null reference exception (#6589)
This commit is contained in:
committed by
GitHub
parent
3d5c790fb6
commit
d75dd71848
@@ -173,13 +173,17 @@ namespace PowerLauncher
|
|||||||
Log.Info("|App.OnExit| Start PowerToys Run Exit---------------------------------------------------- ");
|
Log.Info("|App.OnExit| Start PowerToys Run Exit---------------------------------------------------- ");
|
||||||
if (disposing)
|
if (disposing)
|
||||||
{
|
{
|
||||||
_themeManager.ThemeChanged -= OnThemeChanged;
|
if (_themeManager != null)
|
||||||
API.SaveAppAllSettings();
|
{
|
||||||
|
_themeManager.ThemeChanged -= OnThemeChanged;
|
||||||
|
}
|
||||||
|
|
||||||
|
API?.SaveAppAllSettings();
|
||||||
PluginManager.Dispose();
|
PluginManager.Dispose();
|
||||||
_mainWindow.Dispose();
|
_mainWindow?.Dispose();
|
||||||
API.Dispose();
|
API?.Dispose();
|
||||||
_mainVM.Dispose();
|
_mainVM?.Dispose();
|
||||||
_themeManager.Dispose();
|
_themeManager?.Dispose();
|
||||||
_disposed = true;
|
_disposed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user