feat(GODT-2517): replace status window with native tray icon context menu.

feat(GODT-2517): show main windows on left click (Linux & Windows).
feat(GODT-2517): removed old QML status window.
feat(GODT-2517): polishing.
feat(GODT-2517): renaming + removal of dead code (v2 tests).
This commit is contained in:
Xavier Michelon
2023-01-21 20:20:59 +01:00
parent 7383d65cb2
commit e9629aca47
15 changed files with 461 additions and 2021 deletions

View File

@ -24,8 +24,6 @@ import QtQuick.Controls
import Proton
import Notifications
import "tests"
ApplicationWindow {
id: root
colorScheme: ProtonStyle.currentStyle
@ -79,10 +77,6 @@ ApplicationWindow {
root.showAndRise()
}
function onSelectUser(userID) {
root.selectUser(userID)
}
function onLoginFinished(index, wasSignedOut) {
var user = Backend.users.get(index)
if (user && !wasSignedOut) {
@ -90,6 +84,21 @@ ApplicationWindow {
}
console.debug("Login finished", index)
}
function onShowHelp() {
root.showHelp()
root.showAndRise()
}
function onShowSettings() {
root.showSettings()
root.showAndRise()
}
function onSelectUser(userID) {
contentWrapper.selectUser(userID)
root.showAndRise()
}
}
StackLayout {