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