Skip to content

Commit a3c7be9

Browse files
committed
Handle results from SetCurrentTheme
1 parent dd210ad commit a3c7be9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Plugins/Flow.Launcher.Plugin.Sys/ThemeSelector.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ private Result CreateThemeResult(ThemeData theme, ThemeData selectedTheme, int s
7676
Score = score,
7777
Action = c =>
7878
{
79-
_context.API.SetCurrentTheme(theme);
80-
_context.API.ReQuery();
79+
if (_context.API.SetCurrentTheme(theme))
80+
{
81+
_context.API.ReQuery();
82+
}
8183
return false;
8284
}
8385
};

0 commit comments

Comments
 (0)