Merge branch 'dk_copy_file' into master

This commit is contained in:
David Kocik 2020-12-11 15:34:56 +01:00
commit 789e1611a3

View file

@ -156,11 +156,14 @@ void PreferencesDialog::build()
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__
def.label = L("Allow just single PrusaSlicer instance");
def.type = coBool;
def.tooltip = L("On OSX there is always only one instance of app running by default. However it is allowed to run multiple instances of same app from the command line. In such case this settings will allow only one instance.");
#else
def.label = L("Allow just single PrusaSlicer instance");
def.type = coBool;
def.tooltip = L("If this is enabled, when starting PrusaSlicer and another instance of the same PrusaSlicer is already running, that instance will be reactivated instead.");
#endif
def.set_default_value(new ConfigOptionBool{ app_config->has("single_instance") ? app_config->get("single_instance") == "1" : false });