mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Move lang keys to td_lang library.
This commit is contained in:
@@ -416,7 +416,7 @@ Widget::Widget(
|
||||
QPoint startPosition,
|
||||
int shift,
|
||||
Direction shiftDirection)
|
||||
: TWidget(Core::App().getModalParent())
|
||||
: RpWidget(Core::App().getModalParent())
|
||||
, _manager(manager)
|
||||
, _startPosition(startPosition)
|
||||
, _direction(shiftDirection)
|
||||
@@ -587,7 +587,10 @@ Notification::Notification(
|
||||
, _fromScheduled(fromScheduled)
|
||||
, _close(this, st::notifyClose)
|
||||
, _reply(this, tr::lng_notification_reply(), st::defaultBoxButton) {
|
||||
subscribe(Lang::Current().updated(), [this] { refreshLang(); });
|
||||
Lang::Updated(
|
||||
) | rpl::start_with_next([=] {
|
||||
refreshLang();
|
||||
}, lifetime());
|
||||
|
||||
auto position = computePosition(st::notifyMinHeight);
|
||||
updateGeometry(position.x(), position.y(), st::notifyWidth, st::notifyMinHeight);
|
||||
|
Reference in New Issue
Block a user