mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-05-25 15:42:02 +00:00
SettingsPanel: new method "openWidgetSettings"
This commit is contained in:
@@ -352,14 +352,7 @@ Rectangle {
|
||||
acceptedButtons: Qt.RightButton
|
||||
onClicked: {
|
||||
var settingsPanel = PanelService.getPanel("settingsPanel")
|
||||
settingsPanel.requestedTab = SettingsPanel.Tab.Bar
|
||||
settingsPanel.requestedWidgetSettings = {
|
||||
"widgetIndex": root.sectionWidgetIndex,
|
||||
"widgetData": root.widgetSettings,
|
||||
"widgetId": root.widgetId,
|
||||
"sectionId": root.section
|
||||
}
|
||||
settingsPanel.open()
|
||||
settingsPanel.openWidgetSettings(root.section, root.sectionWidgetIndex, root.widgetId, root.widgetSettings)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,6 +240,17 @@ NPanel {
|
||||
root.currentTabIndex = initialIndex
|
||||
}
|
||||
|
||||
function openWidgetSettings(section, widgetIndex, widgetId, widgetData) {
|
||||
settingsPanel.requestedWidgetSettings = {
|
||||
"sectionId": section,
|
||||
"widgetIndex": widgetIndex,
|
||||
"widgetId": widgetId,
|
||||
"widgetData": widgetData
|
||||
}
|
||||
settingsPanel.requestedTab = SettingsPanel.Tab.Bar
|
||||
settingsPanel.open()
|
||||
}
|
||||
|
||||
// Add scroll functions
|
||||
function scrollDown() {
|
||||
if (activeScrollView && activeScrollView.ScrollBar.vertical) {
|
||||
|
||||
Reference in New Issue
Block a user