mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-04 03:06:57 +00:00
BarWidgetSettingsDialog: refactored to support direct opening.
This commit is contained in:
@@ -276,13 +276,14 @@ NBox {
|
||||
onClicked: {
|
||||
var component = Qt.createComponent(Qt.resolvedUrl(root.settingsDialogComponent))
|
||||
function instantiateAndOpen() {
|
||||
var dialog = component.createObject(root, {
|
||||
var dialog = component.createObject(Overlay.overlay, {
|
||||
"widgetIndex": index,
|
||||
"widgetData": modelData,
|
||||
"widgetId": modelData.id,
|
||||
"parent": Overlay.overlay
|
||||
"sectionId": root.sectionId
|
||||
})
|
||||
if (dialog) {
|
||||
dialog.updateWidgetSettings.connect(root.updateWidgetSettings)
|
||||
dialog.open()
|
||||
} else {
|
||||
Logger.e("NSectionEditor", "Failed to create settings dialog instance")
|
||||
|
||||
Reference in New Issue
Block a user