From 6223d3a570ef265a82ae2fba082d34d37b2ffdd2 Mon Sep 17 00:00:00 2001 From: DB p Date: Tue, 25 Jun 2024 17:05:11 +0900 Subject: [PATCH] Simplify compare selected indexe part --- Flow.Launcher/PublicAPIInstance.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher/PublicAPIInstance.cs b/Flow.Launcher/PublicAPIInstance.cs index c35dcc2ba..5470c2ddd 100644 --- a/Flow.Launcher/PublicAPIInstance.cs +++ b/Flow.Launcher/PublicAPIInstance.cs @@ -233,7 +233,7 @@ namespace Flow.Launcher var explorerInfo = _settingsVM.Settings.CustomExplorer; var qttabbarIndex = customExplorerList.FindIndex(e => e.Name.Equals("QTTABBAR", StringComparison.OrdinalIgnoreCase)); - var isQttabbarSelected = qttabbarIndex >= 0 && _settingsVM.Settings.CustomExplorerIndex == qttabbarIndex; + var isQttabbarSelected = qttabbarIndex == _settingsVM.Settings.CustomExplorerIndex; if (isQttabbarSelected) {