IDE: packageeditor: fixed idleconnected on destroy

This commit is contained in:
mattias 2022-06-10 17:29:22 +02:00
parent e10b896d7e
commit e18119823a

View File

@ -1347,7 +1347,7 @@ procedure TPackageEditorForm.FormDestroy(Sender: TObject);
begin
if OPMInterface <> nil then
OPMInterface.RemovePackageListNotification(@PackageListAvailable);
IdleConnected:=true;
IdleConnected:=false;
FreeAndNil(FNextSelectedPart);
EnvironmentOptions.PackageEditorSortAlphabetically := SortAlphabetically;
EnvironmentOptions.PackageEditorShowDirHierarchy := ShowDirectoryHierarchy;