fix crash

This commit is contained in:
fourtf
2020-02-28 19:05:50 +01:00
parent ba5d842767
commit b887f1c90e
4 changed files with 15 additions and 9 deletions
+2 -1
View File
@@ -328,7 +328,8 @@ void GeneralPage::initLayout(SettingsLayout &layout)
layout.addCheckbox("Smooth scrolling on new messages",
s.enableSmoothScrollingNewMessages);
layout.addDropdown<float>(
"Pause on hover", {"Disabled", "0.5s", "1s", "2s", "5s", "Indefinite"},
"Pause after hover",
{"Disabled", "0.5s", "1s", "2s", "5s", "Indefinite"},
s.pauseOnHoverDuration,
[](auto val) {
if (val < -0.5f)