Skip to content

Commit 299effe

Browse files
committed
style(cloudflare-warp): reformatting
1 parent 2db356f commit 299effe

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

cloudflare-warp/BarWidget.qml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ Item {
113113
]
114114

115115
onTriggered: action => {
116-
contextMenu.close();
117-
PanelService.closeContextMenu(screen);
118-
119-
if (action === "widget-settings") {
120-
BarService.openPluginSettings(screen, pluginApi.manifest);
121-
} else if (action === "toggle-warp") {
122-
mainInstance?.toggleWarp();
123-
}
124-
}
116+
contextMenu.close()
117+
PanelService.closeContextMenu(screen)
118+
119+
if (action === "widget-settings") {
120+
BarService.openPluginSettings(screen, pluginApi.manifest)
121+
} else if (action === "toggle-warp") {
122+
mainInstance?.toggleWarp()
123+
}
124+
}
125125
}
126126

127127
MouseArea {
@@ -132,11 +132,11 @@ Item {
132132
acceptedButtons: Qt.LeftButton | Qt.RightButton
133133

134134
onClicked: mouse => {
135-
if (mouse.button === Qt.LeftButton) {
136-
pluginApi?.openPanel(root.screen, root);
137-
} else if (mouse.button === Qt.RightButton) {
138-
PanelService.showContextMenu(contextMenu, root, screen);
139-
}
140-
}
135+
if (mouse.button === Qt.LeftButton) {
136+
pluginApi?.openPanel(root.screen, root)
137+
} else if (mouse.button === Qt.RightButton) {
138+
PanelService.showContextMenu(contextMenu, root, screen)
139+
}
140+
}
141141
}
142142
}

0 commit comments

Comments
 (0)