mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
[Run-Plugin][Program] Fix null reference exception on Dispose (#11785)
This commit is contained in:
parent
6c61f5ddec
commit
9836c19dd5
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(_context is null))
|
if (_context != null && _context.API != null)
|
||||||
{
|
{
|
||||||
_context.API.ThemeChanged -= OnThemeChanged;
|
_context.API.ThemeChanged -= OnThemeChanged;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue