- add run guard (Noo is single instance app now) + increase the version to 0.9.7

This commit is contained in:
Dmytro Bogovych 2022-11-27 19:48:21 +03:00
parent d99d8f7f84
commit e63ab41f02
2 changed files with 6 additions and 1 deletions

View File

@ -39,7 +39,7 @@
#define APP_VERSION_MAJOR 0
#define APP_VERSION_MINOR 9
#define APP_VERSION_SUFFIX 6
#define APP_VERSION_SUFFIX 7
//#ifdef TARGET_OSX
#define ICONS ":/assets/images"

View File

@ -6,9 +6,14 @@
#include <QDir>
#include "settings.h"
#include "helper.h"
#include "runguard.h"
int main(int argc, char *argv[])
{
RunGuard guard("Noo app - runguard");
if ( !guard.tryToRun() )
return 0;
QApplication app(argc, argv);
app.setApplicationName(APPNAME);
helper::theme::applyCurrent(Settings::instance());