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