forked from Shinonome/dots-hyprland
bar: make right clicking right side not skip current track (closes #1456)
This commit is contained in:
@@ -269,8 +269,6 @@ Item { // Bar content region
|
|||||||
onPressed: event => {
|
onPressed: event => {
|
||||||
if (event.button === Qt.LeftButton) {
|
if (event.button === Qt.LeftButton) {
|
||||||
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
|
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
|
||||||
} else if (event.button === Qt.RightButton) {
|
|
||||||
MprisController.activePlayer.next();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -417,8 +415,8 @@ Item { // Bar content region
|
|||||||
Layout.leftMargin: 8
|
Layout.leftMargin: 8
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
active: Config.options.bar.weather.enable
|
active: Config.options.bar.weather.enable
|
||||||
|
|
||||||
sourceComponent: BarGroup {
|
sourceComponent: BarGroup {
|
||||||
implicitHeight: Appearance.sizes.baseBarHeight
|
|
||||||
WeatherBar {}
|
WeatherBar {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -253,8 +253,6 @@ Item { // Bar content region
|
|||||||
onPressed: event => {
|
onPressed: event => {
|
||||||
if (event.button === Qt.LeftButton) {
|
if (event.button === Qt.LeftButton) {
|
||||||
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
|
GlobalStates.sidebarRightOpen = !GlobalStates.sidebarRightOpen;
|
||||||
} else if (event.button === Qt.RightButton) {
|
|
||||||
MprisController.activePlayer.next();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Scroll to change volume
|
// Scroll to change volume
|
||||||
|
|||||||
Reference in New Issue
Block a user