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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user