Simplify compare selected indexe part

This commit is contained in:
DB p 2024-06-25 17:05:11 +09:00
parent 7a5fc1c534
commit 6223d3a570

View file

@ -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)
{