style: follow upstream code style

This commit is contained in:
OverMighty 2020-02-09 15:45:31 +01:00
parent bc04d89c32
commit 060d6955e1

View File

@ -174,7 +174,7 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv)
// --alive // --alive
parser.addSwitch("alive"); parser.addSwitch("alive");
parser.addDocumentation("alive", "Write a small '" + liveCheckFile + "' file after MultiMC starts"); parser.addDocumentation("alive", "Write a small '" + liveCheckFile + "' file after MultiMC starts");
// --import
parser.addOption("import"); parser.addOption("import");
parser.addShortOpt("import", 'I'); parser.addShortOpt("import", 'I');
parser.addDocumentation("import", "Import instance from specified zip (local path or URL)"); parser.addDocumentation("import", "Import instance from specified zip (local path or URL)");
@ -818,8 +818,8 @@ void MultiMC::performMainStartupAction()
showMainWindow(false); showMainWindow(false);
qDebug() << "<> Main window shown."; qDebug() << "<> Main window shown.";
} }
if(!m_zipToImport.isEmpty())
if (!m_zipToImport.isEmpty()) { {
qDebug() << "<> Importing instance from zip:" << m_zipToImport.toString(); qDebug() << "<> Importing instance from zip:" << m_zipToImport.toString();
QList<QUrl> urls = { m_zipToImport }; QList<QUrl> urls = { m_zipToImport };
m_mainWindow->droppedURLs(urls); m_mainWindow->droppedURLs(urls);