2
0
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:
John Preston
2018-05-29 21:12:23 +03:00
parent d257b2ee17
commit 03037121aa
4 changed files with 682 additions and 125 deletions

View File

@@ -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();