Added dialog to choose import action when dragging and dropping a project file

This commit is contained in:
enricoturri1966 2020-11-16 08:39:25 +01:00
parent e93b84e2a6
commit 808c43cb4b
3 changed files with 116 additions and 29 deletions

View file

@ -117,6 +117,13 @@ void PreferencesDialog::build()
option = Option(def, "show_incompatible_presets");
m_optgroup_general->append_single_option_line(option);
def.label = L("Show drop project dialog");
def.type = coBool;
def.tooltip = L("When checked, whenever dragging and dropping a project file on the application, shows a dialog asking to select the action to take on the file to load.");
def.set_default_value(new ConfigOptionBool{ app_config->get("show_drop_project_dialog") == "1" });
option = Option(def, "show_drop_project_dialog");
m_optgroup_general->append_single_option_line(option);
def.label = L("Single instance mode");
def.type = coBool;
#if __APPLE__