mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
(NextItemExec): simplified index increment logic.
This commit is contained in:
parent
0b89f83742
commit
5f3122fd04
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user