forked from Shinonome/dots-hyprland
booru: prevent cursor warping when opening link
This commit is contained in:
@@ -159,7 +159,9 @@ Button {
|
|||||||
buttonText: qsTr("Open file link")
|
buttonText: qsTr("Open file link")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.showActions = false
|
root.showActions = false
|
||||||
|
Hyprland.dispatch("keyword cursor:no_warps true")
|
||||||
Qt.openUrlExternally(root.imageData.file_url)
|
Qt.openUrlExternally(root.imageData.file_url)
|
||||||
|
Hyprland.dispatch("keyword cursor:no_warps false")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MenuButton {
|
MenuButton {
|
||||||
@@ -170,7 +172,9 @@ Button {
|
|||||||
enabled: root.imageData.source && root.imageData.source.length > 0
|
enabled: root.imageData.source && root.imageData.source.length > 0
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.showActions = false
|
root.showActions = false
|
||||||
|
Hyprland.dispatch("keyword cursor:no_warps true")
|
||||||
Qt.openUrlExternally(root.imageData.source)
|
Qt.openUrlExternally(root.imageData.source)
|
||||||
|
Hyprland.dispatch("keyword cursor:no_warps false")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MenuButton {
|
MenuButton {
|
||||||
|
|||||||
Reference in New Issue
Block a user