Skip to content

Commit

Permalink
tools: refresh resources before signaling data compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
dbartolini committed Sep 20, 2024
1 parent 703faf0 commit cfacdcc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/level_editor/level_editor.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1147,8 +1147,12 @@ public class LevelEditorApplication : Gtk.Application
// FIXME
} else if (msg.has_key("success")) {
_data_compiler.compile_finished((bool)msg["success"], (uint)(double)msg["revision"]);
_project.data_compiled();
_project_browser.queue_draw();

refresh_all_clients.begin((obj, res) => {
refresh_all_clients.end(res);
_project.data_compiled();
_project_browser.queue_draw();
});
}
} else if (msg_type == "refresh") {
ri.refresh_finished((bool)msg["success"]);
Expand Down

0 comments on commit cfacdcc

Please sign in to comment.