mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-09 03:12:05 +02:00
Merge pull request #2058
247f129
Use Slider.onMoved for inactivity slider, remove Timer (xmrdsc)
This commit is contained in:
commit
5887f87677
@ -160,17 +160,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 New Issue
Block a user