SingleApplication
This commit is contained in:
parent
96aa3d409d
commit
39224c7bf7
5 changed files with 2 additions and 139 deletions
|
|
@ -6,13 +6,10 @@
|
|||
|
||||
#include "debug.h"
|
||||
#include "defines.h"
|
||||
#include "runguard.h"
|
||||
#include "singleapplication.h"
|
||||
|
||||
#include "ui/mainwindow.h"
|
||||
|
||||
#define QAPPLICATION_CLASS QApplication
|
||||
#include "singleapplication.h"
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#include "Windows.h"
|
||||
#endif
|
||||
|
|
@ -28,7 +25,6 @@ static void loadTranslator()
|
|||
int main(int argc, char *argv[])
|
||||
{
|
||||
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
|
||||
//RunGuard::instance(APPLICATION_NAME).activate();
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
AllowSetForegroundWindow(ASFW_ANY);
|
||||
|
|
@ -42,12 +38,6 @@ int main(int argc, char *argv[])
|
|||
|
||||
loadTranslator();
|
||||
|
||||
// if (!RunGuard::instance().tryToRun()) {
|
||||
// qDebug() << "Tried to run second instance. Exiting...";
|
||||
// QMessageBox::information(NULL, QObject::tr("Notification"), QObject::tr("AmneziaVPN is already running."));
|
||||
// return 0;
|
||||
// }
|
||||
|
||||
QFontDatabase::addApplicationFont(":/fonts/Lato-Black.ttf");
|
||||
QFontDatabase::addApplicationFont(":/fonts/Lato-BlackItalic.ttf");
|
||||
QFontDatabase::addApplicationFont(":/fonts/Lato-Bold.ttf");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue