mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Refresh appconfig after login.
This commit is contained in:
parent
5d32ba5867
commit
e6f3cd1d56
1 changed files with 7 additions and 0 deletions
|
@ -24,6 +24,13 @@ AppConfig::AppConfig(not_null<Account*> account) : _account(account) {
|
||||||
_api.emplace(instance);
|
_api.emplace(instance);
|
||||||
refresh();
|
refresh();
|
||||||
}, _lifetime);
|
}, _lifetime);
|
||||||
|
|
||||||
|
account->sessionChanges(
|
||||||
|
) | rpl::filter([=](Session *session) {
|
||||||
|
return (session != nullptr);
|
||||||
|
}) | rpl::start_with_next([=] {
|
||||||
|
refresh();
|
||||||
|
}, _lifetime);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppConfig::refresh() {
|
void AppConfig::refresh() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue