Skip to content

Commit

Permalink
fix(MyProfileView): unbreak showing the "Preview as..." combo
Browse files Browse the repository at this point in the history
- we are inside Settings, and `isCurrentUser` needs to be true for the
profile perspective selector (aka the "Preview as..." combo) to be shown
- also fix the (unrelated) warning about `Window` being null

Fixes #17041
  • Loading branch information
caybro committed Jan 9, 2025
1 parent f0a6571 commit ada5f21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/StatusQ/src/StatusQ/Popups/Dialog/StatusDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Dialog {

padding: 16
// by design
margins: root.contentItem.Window.window.height <= 780 ? 28: 64
margins: root.contentItem.Window.height <= 780 ? 28 : 64
modal: true

// workaround for https://bugreports.qt.io/browse/QTBUG-87804
Expand Down
2 changes: 1 addition & 1 deletion ui/app/AppLayouts/Profile/views/MyProfileView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ SettingsContentBase {
colorId: root.profileStore.colorId
colorHash: root.profileStore.colorHash
onlineStatus: root.profileStore.currentUserStatus

isCurrentUser: true
displayName: descriptionPanel.displayName.text
bio: descriptionPanel.bio.text
largeImage: profileHeader.previewIcon
Expand Down

0 comments on commit ada5f21

Please sign in to comment.