mirror of https://gitlab.com/basile.b/dexed.git
fix , selection after move up/down
This commit is contained in:
parent
45d84c2464
commit
82995b0963
|
@ -104,6 +104,7 @@ begin
|
||||||
if lstTools.ItemIndex = 0 then exit;
|
if lstTools.ItemIndex = 0 then exit;
|
||||||
//
|
//
|
||||||
CustomTools.tools.Exchange(lstTools.ItemIndex, lstTools.ItemIndex - 1);
|
CustomTools.tools.Exchange(lstTools.ItemIndex, lstTools.ItemIndex - 1);
|
||||||
|
lstTools.ItemIndex := lstTools.ItemIndex - 1;
|
||||||
updateNames;
|
updateNames;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -113,6 +114,7 @@ begin
|
||||||
if lstTools.ItemIndex = lstTools.Items.Count-1 then exit;
|
if lstTools.ItemIndex = lstTools.Items.Count-1 then exit;
|
||||||
//
|
//
|
||||||
CustomTools.tools.Exchange(lstTools.ItemIndex, lstTools.ItemIndex + 1);
|
CustomTools.tools.Exchange(lstTools.ItemIndex, lstTools.ItemIndex + 1);
|
||||||
|
lstTools.ItemIndex := lstTools.ItemIndex + 1;
|
||||||
updateNames;
|
updateNames;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue