#5657 Make serial key argument for server only
This commit is contained in:
parent
e48be9099d
commit
45f37c508c
|
@ -554,10 +554,6 @@ void MainWindow::startSynergy()
|
||||||
|
|
||||||
args << "--name" << getScreenName();
|
args << "--name" << getScreenName();
|
||||||
|
|
||||||
if (!appConfig().serialKey().isEmpty()) {
|
|
||||||
args << "--serial-key" << appConfig().serialKey();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (desktopMode)
|
if (desktopMode)
|
||||||
{
|
{
|
||||||
setSynergyProcess(new QProcess(this));
|
setSynergyProcess(new QProcess(this));
|
||||||
|
@ -787,6 +783,10 @@ bool MainWindow::serverArgs(QStringList& args, QString& app)
|
||||||
#endif
|
#endif
|
||||||
args << "-c" << configFilename << "--address" << address();
|
args << "-c" << configFilename << "--address" << address();
|
||||||
|
|
||||||
|
if (!appConfig().serialKey().isEmpty()) {
|
||||||
|
args << "--serial-key" << appConfig().serialKey();
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
// pass in physical resolution and primary screen center
|
// pass in physical resolution and primary screen center
|
||||||
// TODO: get this information in the core binary even when
|
// TODO: get this information in the core binary even when
|
||||||
|
|
Loading…
Reference in New Issue