#include #include "../common/version.h" #include "fortcommon.h" #include "fortmanager.h" #include "fortsettings.h" int main(int argc, char *argv[]) { QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication app(argc, argv); app.setApplicationName(APP_NAME); app.setApplicationVersion(APP_VERSION_STR); app.setApplicationDisplayName(APP_NAME " v" APP_VERSION_STR); FortManager fortManager; // Register booted provider and exit if (fortManager.fortSettings()->boot()) { FortCommon::provUnregister(); return FortCommon::provRegister(true); } fortManager.showTrayIcon(); return app.exec(); }