From a3c7be95597f8c0765f0e62749b7f263749e78cd Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Tue, 8 Apr 2025 16:49:29 +0800 Subject: [PATCH] Handle results from SetCurrentTheme --- Plugins/Flow.Launcher.Plugin.Sys/ThemeSelector.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Sys/ThemeSelector.cs b/Plugins/Flow.Launcher.Plugin.Sys/ThemeSelector.cs index feacc3f99..f8aeaeafd 100644 --- a/Plugins/Flow.Launcher.Plugin.Sys/ThemeSelector.cs +++ b/Plugins/Flow.Launcher.Plugin.Sys/ThemeSelector.cs @@ -76,8 +76,10 @@ namespace Flow.Launcher.Plugin.Sys Score = score, Action = c => { - _context.API.SetCurrentTheme(theme); - _context.API.ReQuery(); + if (_context.API.SetCurrentTheme(theme)) + { + _context.API.ReQuery(); + } return false; } };