mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Add support for autoupdate through MTProto.
This commit is contained in:
@@ -158,6 +158,8 @@ void Widget::onCheckUpdateStatus() {
|
||||
if (!_a_show.animating()) {
|
||||
_update->setVisible(true);
|
||||
}
|
||||
const auto stepHasCover = getStep()->hasCover();
|
||||
_update->toggle(!stepHasCover, anim::type::instant);
|
||||
_update->entity()->setClickedCallback([] {
|
||||
Core::checkReadyUpdate();
|
||||
App::restart();
|
||||
|
Reference in New Issue
Block a user