def shutdown(): if projectaction.was_edited_since_last_save() == False: _shutdown_dialog_callback(None, None, True) return True else: dialogs.exit_confirm_dialog(_shutdown_dialog_callback, get_save_time_msg(), gui.editor_window.window, editorstate.PROJECT().name) return True # Signal that event is handled, otherwise it'll destroy window anyway
def shutdown(): dialogs.exit_confirm_dialog(_shutdown_dialog_callback, get_save_time_msg(), gui.editor_window.window, editorstate.PROJECT().name) return True # Signal that event is handled, otherwise it'll destroy window anyway