mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Don't use scroll animations on macos by default, it where hdpi scroll is most likely to be used
This commit is contained in:
@ -286,7 +286,13 @@ void OptionsDialog::restoreOptions(QSettings *settings)
|
||||
|
||||
doNotTurnPageOnScroll->setChecked(settings->value(DO_NOT_TURN_PAGE_ON_SCROLL, false).toBool());
|
||||
useSingleScrollStepToTurnPage->setChecked(settings->value(USE_SINGLE_SCROLL_STEP_TO_TURN_PAGE, false).toBool());
|
||||
disableScrollAnimations->setChecked(settings->value(DISABLE_SCROLL_ANIMATION, false).toBool());
|
||||
|
||||
#ifdef Q_OS_MACOS
|
||||
auto defaultDisableScrollAnimationsValue = true;
|
||||
#else
|
||||
auto defaultDisableScrollAnimationsValue = false;
|
||||
#endif
|
||||
disableScrollAnimations->setChecked(settings->value(DISABLE_SCROLL_ANIMATION, defaultDisableScrollAnimationsValue).toBool());
|
||||
}
|
||||
|
||||
void OptionsDialog::updateColor(const QColor &color)
|
||||
|
Reference in New Issue
Block a user