msgBox.setText(QCoreApplication::translate("main","You must configure how to connect to Syncthing when using Syncthing Tray the first time."));
msgBox.setInformativeText(QCoreApplication::translate("main","Note that the settings dialog allows importing URL, credentials and API-key from the local Syncthing configuration."));
msgBox.exec();
}
res=application.exec();
}else{
QMessageBox::critical(nullptr,QApplication::applicationName(),QApplication::translate("main","The system tray is (currently) not available. You could open the tray menu as a regular window using the -w flag, though."));
res=-1;
}
#else
QMessageBox::critical(nullptr,QApplication::applicationName(),QApplication::translate("main","The Qt libraries have not been built with tray icon support. You could open the tray menu as a regular window using the -w flag, though."));
res=-2;
#endif
}
Settings::save();
QtUtilitiesResources::cleanup();
returnres;
}
}catch(constFailure&ex){
CMD_UTILS_START_CONSOLE;
cout<<"Unable to parse arguments. "<<ex.what()<<"\nSee --help for available commands."<<endl;