fix(warnings): Fix warnings raised from settings

Fixes: #8293
This commit is contained in:
Boris Melnik 2022-12-13 18:49:31 +03:00
parent a7884cf04f
commit 5d19667f2d
4 changed files with 7 additions and 5 deletions

View File

@ -25,10 +25,12 @@ Item {
anchors.left: parent.left
anchors.right: parent.right
contentWidth: contentItem.width
contentHeight: contentItem.height
Item {
id: contentItem
width: profileContentWidth
height: childrenRect.height
Image {
id: image

View File

@ -57,7 +57,6 @@ Item {
ColumnLayout {
id: titleRow
width: root.contentWidth
height: childrenRect.height
spacing: 0
RowLayout {
Layout.preferredWidth: (parent.width - Style.current.padding)
@ -92,6 +91,8 @@ Item {
anchors.topMargin: Style.current.padding
padding: 0
width: root.contentWidth
contentWidth: availableWidth
contentHeight: contentLayout.implicitHeight
Column {
id: contentLayout

View File

@ -174,7 +174,7 @@ ColumnLayout {
let processedButtons = 0;
while (!itemAt(currentIndex).enabled) {
if (++processedButtons == count) {
if (++processedButtons === count) {
currentIndex = -1;
break;
}
@ -183,7 +183,6 @@ ColumnLayout {
}
StatusTabButton {
enabled: localAccountSensitiveSettings.communitiesEnabled
width: enabled ? implicitWidth : 0
text: qsTr("Communities")
onEnabledChanged: showcaseTabBar.validateCurrentIndex()

View File

@ -23,7 +23,7 @@ Loader {
property var messageStore
property var usersStore
property var contactsStore
property var messageContextMenu
property var messageContextMenu: null
property string channelEmoji
property bool isActiveChannel: false
@ -481,7 +481,7 @@ Loader {
disableHover: root.disableHover ||
(root.chatLogView && root.chatLogView.flickingVertically) ||
activityCenterMessage ||
root.messageContextMenu.opened ||
(root.messageContextMenu && root.messageContextMenu.opened) ||
!!Global.profilePopupOpened ||
!!Global.popupOpened