Packager: Package-Editor, disable move-up/down buttons for hieratical view. See Issues #41282 and #41283

(cherry picked from commit 239b75609b)
This commit is contained in:
Martin 2024-12-17 11:27:59 +01:00
parent b449aa9c82
commit f246115506

View File

@ -2486,7 +2486,7 @@ begin
// move up/down (only single selection)
aVisible := (FilterEdit.Filter='')
and (not (SortAlphabetically or SingleSelectedRemoved))
and (not (SortAlphabetically or ShowDirectoryHierarchy or SingleSelectedRemoved))
and ((SingleSelectedFile<>nil) or (SingleSelectedDep<>nil));
MoveUpBtn.Enabled :=aVisible and Assigned(SingleSelectedNode.GetPrevVisibleSibling);
MoveDownBtn.Enabled:=aVisible and Assigned(SingleSelectedNode.GetNextVisibleSibling);