Merge Linuxero with main
This commit is contained in:
10
Gui/main.qml
10
Gui/main.qml
@@ -62,6 +62,7 @@ ApplicationWindow
|
||||
property alias window: appWindow
|
||||
}
|
||||
|
||||
|
||||
Dialog
|
||||
{
|
||||
id: importDialog
|
||||
@@ -117,7 +118,9 @@ ApplicationWindow
|
||||
|
||||
Component.onCompleted:
|
||||
{
|
||||
config.configurationReady.connect(goToLogin)
|
||||
systray.activated.connect(showWindow)
|
||||
|
||||
if(bad_config)
|
||||
{
|
||||
importDialog.open()
|
||||
@@ -129,6 +132,7 @@ ApplicationWindow
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function showWindow(why)
|
||||
{
|
||||
if (why === 3)
|
||||
@@ -153,4 +157,10 @@ ApplicationWindow
|
||||
console.log("Main window closed!! Was soll ich tun? kann ich mich beenden?!")
|
||||
}
|
||||
}
|
||||
|
||||
function goToLogin()
|
||||
{
|
||||
appLoader.source= "LoginScreen.qml"
|
||||
topBar.visible = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user