forked from Silverfish/proton-bridge
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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user