2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Change *[Fast|Animated] to anim::type in SlideWrap.

This commit is contained in:
John Preston
2017-10-01 11:15:40 +03:00
parent 83850d9b86
commit f0ad78d808
15 changed files with 129 additions and 111 deletions

View File

@@ -180,7 +180,7 @@ void GeneralWidget::refreshControls() {
createChildRow(_updateRow, marginLink, slidedPadding);
connect(_updateRow->entity(), SIGNAL(restart()), this, SLOT(onRestart()));
if (!cAutoUpdate()) {
_updateRow->hideFast();
_updateRow->hide(anim::type::instant);
}
#endif // !TDESKTOP_DISABLE_AUTOUPDATE
@@ -197,7 +197,7 @@ void GeneralWidget::refreshControls() {
_startMinimized->entity()->setChecked(cStartMinimized() && !Global::LocalPasscode());
});
if (!cAutoStart()) {
_startMinimized->hideFast();
_startMinimized->hide(anim::type::instant);
}
createChildRow(_addInSendTo, marginSmall, lang(lng_settings_add_sendto), [this](bool) { onAddInSendTo(); }, cSendToMenu());
#endif // OS_WIN_STORE
@@ -234,7 +234,9 @@ void GeneralWidget::onRestart() {
void GeneralWidget::onUpdateAutomatically() {
cSetAutoUpdate(_updateAutomatically->checked());
Local::writeSettings();
_updateRow->toggleAnimated(cAutoUpdate());
_updateRow->toggle(
cAutoUpdate(),
anim::type::normal);
if (cAutoUpdate()) {
Sandbox::startUpdateCheck();
} else {
@@ -282,7 +284,7 @@ void GeneralWidget::onAutoStart() {
Local::writeSettings();
}
}
_startMinimized->toggleAnimated(cAutoStart());
_startMinimized->toggle(cAutoStart(), anim::type::normal);
}
void GeneralWidget::onStartMinimized() {