Skip to content

Commit

Permalink
remove app lock
Browse files Browse the repository at this point in the history
  • Loading branch information
nomionz committed Mar 12, 2024
1 parent c5e991a commit 1132416
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <QDir>
#include <QIcon>
#include <QLockFile>
#include <QQmlContext>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
Expand All @@ -23,12 +22,6 @@ int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);

QLockFile lockFile(QDir::temp().absoluteFilePath("HARDWARIOMonitor.lock"));
if (!lockFile.tryLock(100)) {
// An instance of the application is already running
return 1;
}

app.setOrganizationName("HARDWARIO");
app.setOrganizationDomain("IoT");
app.setWindowIcon(QIcon(":/icons/favicon"));
Expand Down

0 comments on commit 1132416

Please sign in to comment.