Skip to content

Commit 6223d3a

Browse files
committed
Simplify compare selected indexe part
1 parent 7a5fc1c commit 6223d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public void OpenDirectory(string DirectoryPath, string FileNameOrFilePath = null
233233
var explorerInfo = _settingsVM.Settings.CustomExplorer;
234234

235235
var qttabbarIndex = customExplorerList.FindIndex(e => e.Name.Equals("QTTABBAR", StringComparison.OrdinalIgnoreCase));
236-
var isQttabbarSelected = qttabbarIndex >= 0 && _settingsVM.Settings.CustomExplorerIndex == qttabbarIndex;
236+
var isQttabbarSelected = qttabbarIndex == _settingsVM.Settings.CustomExplorerIndex;
237237

238238
if (isQttabbarSelected)
239239
{

0 commit comments

Comments
 (0)