From 9849f9ae8089cf8de99dbcf54e691929998d4614 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sun, 22 Nov 2020 12:03:10 +0100 Subject: [PATCH] Don't display empty combobox --- imports/NeoChat/Dialog/RoomSettingsDialog.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/imports/NeoChat/Dialog/RoomSettingsDialog.qml b/imports/NeoChat/Dialog/RoomSettingsDialog.qml index c55e70078..d6aed9511 100644 --- a/imports/NeoChat/Dialog/RoomSettingsDialog.qml +++ b/imports/NeoChat/Dialog/RoomSettingsDialog.qml @@ -101,10 +101,14 @@ Kirigami.OverlaySheet { } } - Kirigami.Separator {} + Kirigami.Separator { + Layout.fillWidth: true + visible: canonicalAliasComboBox.visible || altAlias.visible + } ComboBox { id: canonicalAliasComboBox + visible: room.aliases && room.aliases.length Kirigami.FormData.label: i18n("Canonical Alias:") popup.z: 999; // HACK This is an absolute hack, but combos inside OverlaySheets have their popups show up underneath, because of fun z ordering stuff @@ -121,6 +125,7 @@ Kirigami.OverlaySheet { } RowLayout { + id: altAlias Kirigami.FormData.label: i18n("Alt Aliases") Layout.fillWidth: true