Skip to content

Commit edc58d2

Browse files
wjyrichdeepin-bot[bot]
authored andcommitted
fix: simplify uninstall dialog button layout
as title. Pms: BUG-325579
1 parent 7bf3176 commit edc58d2

1 file changed

Lines changed: 18 additions & 26 deletions

File tree

shell-launcher-applet/package/launcheritem.qml

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -319,35 +319,27 @@ AppletItem {
319319
Layout.margins: 10
320320
}
321321
RowLayout {
322-
spacing: 0
323-
Item {
324-
Button {
325-
id: cancelButton
326-
text: qsTr("Cancel")
327-
onClicked: {
328-
confirmUninstallDlg.close()
329-
}
330-
anchors.centerIn: parent
331-
}
322+
spacing: 10
323+
Layout.fillWidth: true
324+
Layout.topMargin: 20
325+
Layout.bottomMargin: 20
326+
327+
Button {
328+
id: cancelButton
332329
Layout.fillWidth: true
333-
Layout.preferredHeight: cancelButton.implicitHeight
334-
Layout.topMargin: 20
335-
Layout.bottomMargin: 20
336-
}
337-
Item {
338-
WarningButton {
339-
id: confirmButton
340-
text: qsTr("Uninstall")
341-
onClicked: {
342-
DesktopIntegration.uninstallApp(confirmUninstallDlg.appId)
343-
confirmUninstallDlg.close()
344-
}
345-
anchors.centerIn: parent
330+
text: qsTr("Cancel")
331+
onClicked: {
332+
confirmUninstallDlg.close()
346333
}
334+
}
335+
WarningButton {
336+
id: confirmButton
347337
Layout.fillWidth: true
348-
Layout.preferredHeight: confirmButton.implicitHeight
349-
Layout.topMargin: 20
350-
Layout.bottomMargin: 20
338+
text: qsTr("Confirm")
339+
onClicked: {
340+
DesktopIntegration.uninstallApp(confirmUninstallDlg.appId)
341+
confirmUninstallDlg.close()
342+
}
351343
}
352344
}
353345
}

0 commit comments

Comments
 (0)