mirror of
https://github.com/videolan/vlc.git
synced 2024-11-26 19:34:40 +08:00
qml: activate event filtering after the initial event in VolumeWidget
This commit is contained in:
parent
13c44ed411
commit
fc2d8b1f39
@ -109,6 +109,8 @@ T.Pane {
|
||||
|
||||
property bool _keyPressed: false
|
||||
|
||||
property bool filterEvents: false
|
||||
|
||||
color: root.sliderColor
|
||||
|
||||
from: 0
|
||||
@ -209,7 +211,12 @@ T.Pane {
|
||||
return
|
||||
|
||||
if (!volControl._inhibitPlayerVolumeUpdate) {
|
||||
Qt.callLater(volControl._adjustPlayerVolume)
|
||||
if (filterEvents) {
|
||||
Qt.callLater(volControl._adjustPlayerVolume)
|
||||
} else {
|
||||
volControl._adjustPlayerVolume()
|
||||
filterEvents = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -269,6 +276,7 @@ T.Pane {
|
||||
return
|
||||
}
|
||||
|
||||
volControl.filterEvents = false
|
||||
adjustVolume(mouse)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user