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:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user