Differential D14138 Diff 37829 desktoppackage/contents/configuration/panelconfiguration/MoreSettingsMenu.qml
Changeset View
Changeset View
Standalone View
Standalone View
desktoppackage/contents/configuration/panelconfiguration/MoreSettingsMenu.qml
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Line(s) | 130 | PlasmaComponents.ToolButton { | |||
---|---|---|---|---|---|
134 | onClicked: { | 134 | onClicked: { | ||
135 | plasmoid.action("lock widgets").trigger(); | 135 | plasmoid.action("lock widgets").trigger(); | ||
136 | configDialog.close(); | 136 | configDialog.close(); | ||
137 | } | 137 | } | ||
138 | } | 138 | } | ||
139 | PlasmaComponents.ToolButton { | 139 | PlasmaComponents.ToolButton { | ||
140 | Layout.fillWidth: true | 140 | Layout.fillWidth: true | ||
141 | text: i18nd("plasma_shell_org.kde.plasma.desktop", "Remove Panel") | 141 | text: i18nd("plasma_shell_org.kde.plasma.desktop", "Remove Panel") | ||
142 | iconSource: "window-close" | 142 | iconSource: "delete" | ||
143 | onClicked: { | 143 | onClicked: { | ||
144 | contextMenu.visible = false; | 144 | contextMenu.visible = false; | ||
145 | plasmoid.action("remove").trigger(); | 145 | plasmoid.action("remove").trigger(); | ||
146 | } | 146 | } | ||
147 | } | 147 | } | ||
148 | } | 148 | } | ||
149 | 149 | | |||
150 | function hide() { | 150 | function hide() { | ||
151 | visible = false; | 151 | visible = false; | ||
152 | } | 152 | } | ||
153 | 153 | | |||
154 | Component.onCompleted: { | 154 | Component.onCompleted: { | ||
155 | dialogRoot.closeContextMenu.connect(hide); | 155 | dialogRoot.closeContextMenu.connect(hide); | ||
156 | } | 156 | } | ||
157 | } | 157 | } |