Add simple lock file per configuration

Make use of lock files in configuration directory
for preventing multiple instances of Mirage from
being running at the same time, at least for a
single configuration.
Running multiple instances of Mirage is known to
cause encryption errors in one or more instances.
This commit is contained in:
vslg
2020-09-04 14:09:58 -03:00
parent bbcdcde53f
commit 6061b2f061
2 changed files with 52 additions and 3 deletions

View File

@@ -109,10 +109,12 @@ ApplicationWindow {
tooltip: qsTr("Mirage")
icon.source: `../icons/${iconPack}/tray-icon.png`
onActivated: window.show()
menu: Menu {
MenuItem {
text: qsTr("Quit")
onTriggered: window.close()
onTriggered: window.hide()
}
}
}