mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-10 07:38:58 +08:00
(NextItemExec): simplified index increment logic.
This commit is contained in:
@@ -1168,11 +1168,7 @@ namespace GARbro.GUI
|
||||
if (LookupActive)
|
||||
return;
|
||||
|
||||
var index = CurrentDirectory.SelectedIndex;
|
||||
if (-1 == index)
|
||||
index = 0;
|
||||
else
|
||||
++index;
|
||||
var index = CurrentDirectory.SelectedIndex + 1;
|
||||
if (index < CurrentDirectory.Items.Count)
|
||||
CurrentDirectory.SelectedIndex = index;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user