Skip to content

Commit c3e2716

Browse files
fix(hermes-ssh-chat): add required plugin properties for code-quality check
1 parent a6ebbd5 commit c3e2716

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

hermes-ssh-chat/Panel.qml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ import "." as Local
99
Item {
1010
id: root
1111

12-
property var pluginApi
12+
property var pluginApi: null
13+
readonly property var geometryPlaceholder: panelContainer
14+
readonly property bool allowAttach: true
1315
property real contentPreferredWidth: Math.round(Math.max(720, Math.min(1800, Number(cfg.panelWidth ?? defaults.panelWidth ?? 1200))) * Style.uiScaleRatio)
1416
property real contentPreferredHeight: Math.round(Math.max(560, Number(cfg.panelHeight ?? defaults.panelHeight ?? 760)) * Style.uiScaleRatio)
15-
property bool allowAttach: true
1617

1718
property var cfg: pluginApi?.pluginSettings || ({})
1819
property var defaults: pluginApi?.manifest?.metadata?.defaultSettings || ({})
@@ -54,6 +55,7 @@ Item {
5455
}
5556

5657
ColumnLayout {
58+
id: panelContainer
5759
anchors.fill: parent
5860
anchors.margins: Style.marginL
5961
spacing: Style.marginM

0 commit comments

Comments
 (0)