mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
Use Slider.onMoved for inactivity slider, remove Timer
This commit is contained in:
parent
19c2208dc4
commit
247f129a24
1 changed files with 1 additions and 10 deletions
|
@ -150,17 +150,8 @@ Rectangle {
|
|||
color: parent.pressed ? "#f0f0f0" : "#f6f6f6"
|
||||
border.color: MoneroComponents.Style.grey
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
// @TODO: Slider.onMoved{} is available in Qt > 5.9, use a hacky timer for now
|
||||
id: userInactivitySliderTimer
|
||||
interval: 1000; running: false; repeat: true
|
||||
onTriggered: {
|
||||
if(persistentSettings.lockOnUserInActivityInterval != userInactivitySlider.value) {
|
||||
persistentSettings.lockOnUserInActivityInterval = userInactivitySlider.value;
|
||||
}
|
||||
}
|
||||
onMoved: persistentSettings.lockOnUserInActivityInterval = userInactivitySlider.value;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue