mirror of
https://github.com/tnodir/fort
synced 2024-11-17 15:25:32 +00:00
29 lines
686 B
C++
29 lines
686 B
C++
#include <QApplication>
|
|
|
|
#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();
|
|
}
|