fix: Remove syncing header from ‘Notifications and Sounds’

Fixes #9683
This commit is contained in:
Lukáš Tinkl 2023-04-04 16:05:50 +02:00 committed by Lukáš Tinkl
parent 6885fda217
commit 894cb9eff3
2 changed files with 2 additions and 46 deletions

View File

@ -210,7 +210,6 @@ StatusSectionLayout {
implicitHeight: parent.height
notificationsStore: root.store.notificationsStore
devicesStore: root.store.devicesStore
sectionTitle: root.store.getNameForSubsection(Constants.settingsSubsection.notifications)
contentWidth: d.contentWidth
}

View File

@ -19,8 +19,8 @@ import "../popups"
SettingsContentBase {
id: root
property NotificationsStore notificationsStore
property DevicesStore devicesStore
content: ColumnLayout {
id: contentColumn
@ -164,7 +164,7 @@ SettingsContentBase {
Rectangle {
Layout.preferredWidth: root.contentWidth
implicitHeight: col1.height + 2 * Style.current.padding
visible: Qt.platform.os == "osx"
visible: Qt.platform.os == Constants.mac
radius: Constants.settingsSection.radius
color: Theme.palette.primaryColor3
@ -197,46 +197,6 @@ SettingsContentBase {
}
}
Rectangle {
Layout.preferredWidth: root.contentWidth
implicitHeight: row1.height + 2 * Style.current.padding
radius: Constants.settingsSection.radius
color: Theme.palette.pinColor2
RowLayout {
id: row1
anchors.margins: Style.current.padding
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
visible: root.devicesStore.devicesModel.count > 0
StatusBaseText {
Layout.fillWidth: true
text: qsTr("Sync your devices to share notifications preferences")
font.pixelSize: Constants.settingsSection.infoFontSize
lineHeight: Constants.settingsSection.infoLineHeight
lineHeightMode: Text.FixedHeight
color: Theme.palette.pinColor1
}
StatusBaseText {
text: qsTr("Syncing >")
font.pixelSize: Constants.settingsSection.infoFontSize
lineHeight: Constants.settingsSection.infoLineHeight
lineHeightMode: Text.FixedHeight
color: Theme.palette.pinColor1
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
root.devicesStore.syncAll()
}
}
}
}
}
StatusListItem {
Layout.preferredWidth: root.contentWidth
title: qsTr("Allow Notification Bubbles")
@ -545,7 +505,4 @@ SettingsContentBase {
delegate: exemptionDelegateComponent
}
}
//}
// }
//}
}