Skip to content

Commit f35d36b

Browse files
committed
Fix delete index out of bound issue
1 parent a02d020 commit f35d36b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher.Infrastructure/UserSettings/Settings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public string Language
4242
public int CustomExplorerIndex { get; set; } = 0;
4343
public CustomExplorerViewModel CustomExplorer
4444
{
45-
get => CustomExplorerList[CustomExplorerIndex];
45+
get => CustomExplorerList[CustomExplorerIndex < CustomExplorerList.Count ? CustomExplorerIndex : 0];
4646
set => CustomExplorerList[CustomExplorerIndex] = value;
4747
}
4848

@@ -69,7 +69,7 @@ public CustomExplorerViewModel CustomExplorer
6969
Path = @"C:\Program Files\GPSoftware\Directory Opus\dopusrt.exe",
7070
DirectoryArgument = "/cmd Go \"%d\"",
7171
FileArgument = "/cmd Go \"%f\""
72-
72+
7373
},
7474
new()
7575
{

0 commit comments

Comments
 (0)