File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ NIconButton {
2626
2727 readonly property string _statusLabel: {
2828 if (root ._status === " Disconnected" )
29- return pluginApi? .tr (" widget.status_disconnected" ) ?? " Disconnected " ;
29+ return pluginApi? .tr (" widget.status_disconnected" );
3030 if (root ._status === " Connecting" )
31- return pluginApi? .tr (" widget.status_connecting" ) ?? " Connecting " ;
32- return pluginApi? .tr (" widget.status_connected" ) ?? " Connected " ;
31+ return pluginApi? .tr (" widget.status_connecting" );
32+ return pluginApi? .tr (" widget.status_connected" );
3333 }
3434
3535 icon: " smart-home"
@@ -56,7 +56,7 @@ NIconButton {
5656
5757 tooltipText: pluginApi? .tr (" widget.tooltip" , {
5858 status: root ._statusLabel
59- }) ?? ( " Status: " + root . _statusLabel )
59+ })
6060
6161 implicitHeight: Style .barHeight
6262
Original file line number Diff line number Diff line change 7575 NTextInput {
7676 id: searchInput
7777 Layout .fillWidth : true
78- label: pluginApi? .tr (" browser.search_label" ) ?? " Search "
79- placeholderText: pluginApi? .tr (" browser.search_placeholder" ) ?? " Filter by name or entity ID... "
78+ label: pluginApi? .tr (" browser.search_label" )
79+ placeholderText: pluginApi? .tr (" browser.search_placeholder" )
8080 onTextChanged: {
8181 root ._searchText = text;
8282 root ._refilter ();
@@ -109,7 +109,7 @@ Item {
109109
110110 NText {
111111 Layout .alignment : Qt .AlignHCenter
112- text: pluginApi? .tr (" browser.loading" ) ?? " Loading entities... "
112+ text: pluginApi? .tr (" browser.loading" )
113113 color: Color .mOnSurfaceVariant
114114 pointSize: Style .fontSizeM
115115 }
@@ -151,7 +151,7 @@ Item {
151151
152152 ColumnLayout {
153153 Layout .fillWidth : true
154- spacing: 2
154+ spacing: Style . spacingXXS
155155
156156 NText {
157157 text: model .friendly_name
You can’t perform that action at this time.
0 commit comments