refactor: add GUI instance reference to UI nodes
This commit is contained in:
@@ -38,7 +38,7 @@ void EngineController::deleteWorld(const std::string& name) {
|
||||
logger.info() << "deleting " << folder.string();
|
||||
io::remove_all(folder);
|
||||
if (!engine.isHeadless()) {
|
||||
engine.getGUI()->getMenu()->back();
|
||||
engine.getGUI().getMenu()->back();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -109,7 +109,7 @@ static void show_convert_request(
|
||||
text += util::str2wstr_utf8(line) + L"\n";
|
||||
}
|
||||
guiutil::confirm_with_memo(
|
||||
engine.getGUI()->getMenu(),
|
||||
engine,
|
||||
langs::get(message),
|
||||
text,
|
||||
on_confirm,
|
||||
|
||||
Reference in New Issue
Block a user