mirror of https://github.com/vitalif/openscad
Default to show welcome screen if no settings value available.
parent
78e341cd4c
commit
d67b01c7f2
|
@ -576,7 +576,8 @@ int gui(vector<string> &inputFiles, const fs::path &original_path, int argc, cha
|
||||||
}
|
}
|
||||||
|
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
if (noInputFiles && settings.value("launcher/showOnStartup").toBool()) {
|
QVariant showOnStartup = settings.value("launcher/showOnStartup");
|
||||||
|
if (noInputFiles && (showOnStartup.isNull() || showOnStartup.toBool())) {
|
||||||
LaunchingScreen *launcher = new LaunchingScreen();
|
LaunchingScreen *launcher = new LaunchingScreen();
|
||||||
int dialogResult = launcher->exec();
|
int dialogResult = launcher->exec();
|
||||||
if (dialogResult) {
|
if (dialogResult) {
|
||||||
|
|
Loading…
Reference in New Issue