- add run guard (Noo is single instance app now) + increase the version to 0.9.7
This commit is contained in:
parent
d99d8f7f84
commit
e63ab41f02
@ -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"
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user