Allow to reset window size from launcher

This commit is contained in:
Klaus Basan
2019-04-29 22:41:10 +02:00
parent 8eff8cd3ba
commit ce534d2536
3 changed files with 27 additions and 20 deletions

View File

@@ -246,10 +246,8 @@ bool CSwiftLauncher::setSwiftCoreExecutable()
if (!sGui || sGui->isShuttingDown()) { return false; }
this->saveSetup();
QStringList args = ui->comp_DBusSelector->getDBusCmdLineArgs();
if (ui->rb_SwiftCoreAudioOnCore->isChecked())
{
args.append("--coreaudio");
}
if (ui->rb_SwiftCoreAudioOnCore->isChecked()) { args.append("--coreaudio"); }
if (ui->cb_resetWindow->isChecked()) { args.append("--resetsize"); }
m_executableArgs = sGui->argumentsJoined(args);
m_executable = CDirectoryUtils::executableFilePath(CBuildConfig::swiftCoreExecutableName());
@@ -273,6 +271,7 @@ bool CSwiftLauncher::setSwiftGuiExecutable()
"--window", CEnableForFramelessWindow::windowModeToString(getWindowMode())
};
if (ui->cb_resetWindow->isChecked()) { args << "--resetsize"; }
if (!this->isStandaloneGuiSelected())
{
const QString dBus(ui->comp_DBusSelector->getDBusAddress());