mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
refs #886, start config wizard when -i is passed to launcher
made -i an optional flag
This commit is contained in:
committed by
Mathew Sutcliffe
parent
cc732bca84
commit
221e4c2b9c
@@ -33,7 +33,7 @@ int main(int argc, char *argv[])
|
|||||||
QApplication qa(argc, argv); // needed
|
QApplication qa(argc, argv); // needed
|
||||||
Q_UNUSED(qa);
|
Q_UNUSED(qa);
|
||||||
CGuiApplication a("swift launcher", CApplicationInfo::Laucher, CIcons::swiftLauncher1024());
|
CGuiApplication a("swift launcher", CApplicationInfo::Laucher, CIcons::swiftLauncher1024());
|
||||||
a.addParserOption({{"i", "installer"}, QCoreApplication::translate("main", "Installer setup."), "installer"});
|
a.addParserOption({{"i", "installer"}, QCoreApplication::translate("main", "Installer setup.") });
|
||||||
if (!a.parse()) { return EXIT_FAILURE; }
|
if (!a.parse()) { return EXIT_FAILURE; }
|
||||||
a.useWebDataServices(BlackCore::CWebReaderFlags::AllSwiftDbReaders, CDatabaseReaderConfigList::forLauncher());
|
a.useWebDataServices(BlackCore::CWebReaderFlags::AllSwiftDbReaders, CDatabaseReaderConfigList::forLauncher());
|
||||||
if (!a.start())
|
if (!a.start())
|
||||||
|
|||||||
@@ -74,6 +74,12 @@ CSwiftLauncher::CSwiftLauncher(QWidget *parent) :
|
|||||||
connect(&m_checkTimer, &QTimer::timeout, this, &CSwiftLauncher::ps_checkRunningApplicationsAndCore);
|
connect(&m_checkTimer, &QTimer::timeout, this, &CSwiftLauncher::ps_checkRunningApplicationsAndCore);
|
||||||
m_checkTimer.setInterval(2500);
|
m_checkTimer.setInterval(2500);
|
||||||
m_checkTimer.start();
|
m_checkTimer.start();
|
||||||
|
|
||||||
|
// auto launch wizard
|
||||||
|
if (sGui->isParserOptionSet("installer"))
|
||||||
|
{
|
||||||
|
QTimer::singleShot(2500, this, &CSwiftLauncher::ps_startWizard);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CSwiftLauncher::~CSwiftLauncher()
|
CSwiftLauncher::~CSwiftLauncher()
|
||||||
|
|||||||
Reference in New Issue
Block a user