Преглед изворни кода

Show server name in tray main window
Signed-off-by: Alkl58 <alkl58@protonmail.com>

alkl58 пре 2 година
родитељ
комит
1e37697152
1 измењених фајлова са 10 додато и 0 уклоњено
  1. 10 0
      src/gui/tray/Window.qml

+ 10 - 0
src/gui/tray/Window.qml

@@ -523,6 +523,16 @@ ApplicationWindow {
                                 font.bold: true
                             }
 
+                            EnforcedPlainTextLabel {
+                                id: currentAccountServer
+                                Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
+                                width: Style.currentAccountLabelWidth
+                                text: UserModel.currentUser.server
+                                elide: Text.ElideRight
+                                color: Style.currentUserHeaderTextColor
+                                visible: UserModel.numUsers() > 1
+                            }
+
                             RowLayout {
                                 id: currentUserStatus
                                 visible: UserModel.currentUser.isConnected &&