Skip to content

Commit

Permalink
Fixed crash on world search
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Dec 28, 2023
1 parent 4360fa3 commit 81b334d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/electron.renderer/page/Editor.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,9 @@ class Editor extends Page {


public function selectWorld(w:data.World, showUp=true) {
if( worldMode )
setWorldMode(false);

curWorldIid = w.iid;
invalidateCachedLevelErrors();

Expand Down
1 change: 0 additions & 1 deletion src/electron.renderer/ui/CommandPalette.hx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ class CommandPalette {

function selectResult(e:SearchElement) {
close();
Modal.closeAll();
e.onPick();
}

Expand Down

0 comments on commit 81b334d

Please sign in to comment.