Typo fixes, minor additions

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
Dominique Fuchs 2020-08-25 13:16:42 +02:00 committed by Kevin Ottens (Rebase PR Action)
parent c6047e4d63
commit 3287ec2387

View file

@ -21,7 +21,7 @@ Window {
readonly property int maxMenuHeight: Style.trayWindowHeight - Style.trayWindowHeaderHeight - 2 * Style.trayWindowBorderWidth
Accessible.role: Accessible.Window
Accessible.role: Accessible.Application
Accessible.name: "Nextcloud client tray window"
// Close tray window when focus is lost (e.g. click somewhere else on the screen)
@ -36,7 +36,7 @@ Window {
currentAccountAvatar.source = ""
currentAccountAvatar.source = "image://avatars/currentUser"
currentAccountStateIndicator.source = ""
currentAccountStateIndicator.source = UserModel.isUserConnected(UserModel.currentUserId()) ? "qrc:///client/theme/colored/state-ok.svg" : "qrc:///client/theme/colored/state-offline.svg"
currentAccountStateIndicator.source = UserModel.isUserConnected(UserModel.currentUserId()) ? "qrc:///client/theme/colored/astate-ok.svg" : "qrc:///client/theme/colored/state-offline.svg"
// HACK: reload account Instantiator immediately by restting it - could be done better I guess
// see also id:accountMenu below
@ -99,6 +99,9 @@ Window {
border.width: Style.trayWindowBorderWidth
border.color: Style.menuBorder
Accessible.role: Accessible.Grouping
Accessible.name: "Nextcloud client tray window"
Rectangle {
id: trayWindowHeaderBackground
@ -240,6 +243,13 @@ Window {
}
}
onClicked: UserModel.addAccount()
Accessible.role: Accessible.MenuItem
Accessible.name: qsTr("Add new account")
Accessible.description: qsTr("Opens setup window to add a new account connection")
Accessible.onPressAction: {
Systray.pauseResumeSync()
}
}
MenuSeparator {
@ -267,7 +277,7 @@ Window {
Accessible.role: Accessible.MenuItem
Accessible.name: Systray.syncIsPaused() ? qsTr("Resume sync for all") : qsTr("Pause sync for all")
Accessible.description: qsTr("Button that pause or resumes sync activity")
Accessible.description: qsTr("Button that pauses or resumes sync activity")
Accessible.onPressAction: {
Systray.pauseResumeSync()
}
@ -532,6 +542,8 @@ Window {
id: listViewScrollbar
}
keyNavigationEnabled: true
Accessible.role: Accessible.List
Accessible.name: qsTr("Activity list")
Accessible.description: qsTr("A list of activities for the currently selected user account")