Skip to content

Remove deleted project from recent projects immediately - #3847

Merged
grossmj merged 1 commit into
GNS3:masterfrom
prajwal-raj:patch-2
Aug 9, 2026
Merged

grossmj merged 1 commit into
GNS3:masterfrom
prajwal-raj:patch-2

Conversation

@prajwal-raj

Copy link
Copy Markdown
Contributor

Project.destroy() (used only when a project is actually deleted, not when it's simply closed) issued a raw DELETE request and never refreshed the controller's cached project list. Since "recent projects" filtering in the GUI checks each entry against that cached list, a deleted project stayed visible under Recent Projects - and could still be clicked, which threw a GUI freeze - until the app was restarted and the list was freshly refetched.

destroy() now uses its own callback, _projectDestroyedCallback, which does everything the previous callback did and additionally calls Controller.refreshProjectList() on success. This matches the same pattern already used by Controller.deleteProject() elsewhere in the codebase. The ordinary project-close path (close()) is untouched.

Fixes #3815

Project.destroy() (used only when a project is actually deleted, not
when it's simply closed) issued a raw DELETE request and never
refreshed the controller's cached project list. Since "recent
projects" filtering in the GUI checks each entry against that cached
list, a deleted project stayed visible under Recent Projects - and
could still be clicked, which threw a GUI freeze - until the app was
restarted and the list was freshly refetched.

destroy() now uses its own callback, _projectDestroyedCallback, which
does everything the previous callback did and additionally calls
Controller.refreshProjectList() on success. This matches the same
pattern already used by Controller.deleteProject() elsewhere in the
codebase. The ordinary project-close path (close()) is untouched.

Fixes GNS3#3815
@grossmj
grossmj merged commit 38ecc9c into GNS3:master Aug 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

After delete project does not dissapair from recent projects

2 participants