2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Add some helper methods to effect wrappers.

Add and use similar methods to WidgetSlideWrap and WidgetFadeWrap:
[show|hide|toggle]Fast() and [show|hide|toggle]Animated().
This commit is contained in:
John Preston
2017-03-15 18:10:18 +03:00
parent fed20435ad
commit 1027bd431a
16 changed files with 80 additions and 131 deletions

View File

@@ -189,10 +189,8 @@ void PrivacyWidget::autoLockUpdated() {
auto value = (Global::AutoLock() % 3600) ? lng_passcode_autolock_minutes(lt_count, Global::AutoLock() / 60) : lng_passcode_autolock_hours(lt_count, Global::AutoLock() / 3600);
_autoLock->entity()->link()->setText(value);
resizeToWidth(width());
_autoLock->slideDown();
} else {
_autoLock->slideUp();
}
_autoLock->toggleAnimated(Global::LocalPasscode());
}
void PrivacyWidget::onBlockedUsers() {