2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

Removed App:wnd for opening settings.

Removed unused App::showSettings from facades.
This commit is contained in:
23rd
2021-02-03 04:58:27 +03:00
committed by John Preston
parent 019e691fbb
commit 1f80c297ec
9 changed files with 31 additions and 20 deletions

View File

@@ -121,8 +121,6 @@ Widget::Widget(
_next->entity()->setClickedCallback([=] { getStep()->submit(); });
_settings->entity()->setClickedCallback([] { App::wnd()->showSettings(); });
if (_changeLanguage) {
_changeLanguage->finishAnimating();
}
@@ -153,6 +151,10 @@ Widget::Widget(
}
}
rpl::producer<> Widget::showSettingsRequested() const {
return _settings->entity()->clicks() | rpl::to_empty;
}
not_null<Media::Player::FloatDelegate*> Widget::floatPlayerDelegate() {
return static_cast<Media::Player::FloatDelegate*>(this);
}