def autosave_dialog_callback(dialog, response): dialog.destroy() autosave_file = utils.get_hidden_user_dir_path() + AUTOSAVE_DIR + get_autosave_files()[0] if response == Gtk.ResponseType.OK: global loaded_autosave_file loaded_autosave_file = autosave_file projectaction.actually_load_project(autosave_file, True) else: os.remove(autosave_file) start_autosave()
def autosaves_many_dialog_callback(dialog, response, autosaves_view, autosaves): if response == Gtk.ResponseType.OK: autosave_file = autosaves[autosaves_view.get_selected_indexes_list()[0]].path # Single selection, 1 quaranteed to exist print "autosave_file", autosave_file global loaded_autosave_file loaded_autosave_file = autosave_file dialog.destroy() projectaction.actually_load_project(autosave_file, True) else: dialog.destroy() start_autosave()
def autosave_dialog_callback(dialog, response): dialog.destroy() autosave_file = userfolders.get_cache_dir( ) + AUTOSAVE_DIR + get_autosave_files()[0] if response == Gtk.ResponseType.OK: global loaded_autosave_file loaded_autosave_file = autosave_file projectaction.actually_load_project(autosave_file, True) else: os.remove(autosave_file) start_autosave()
def autosave_dialog_callback(dialog, response): dialog.destroy() autosave_file = userfolders.get_cache_dir() + AUTOSAVE_DIR + get_autosave_files()[0] if response == Gtk.ResponseType.OK: global loaded_autosave_file loaded_autosave_file = autosave_file projectaction.actually_load_project(autosave_file, True, False, True) else: tlinerender.init_session() # didn't do this in main and not going to do app-open_project os.remove(autosave_file) start_autosave()
def open_assoc_file(): GObject.source_remove(assoc_timeout_id) projectaction.actually_load_project(assoc_file_path, block_recent_files=False)