mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Try settings window title for miniapps.
This commit is contained in:
@@ -382,6 +382,16 @@ Panel::Panel(Args &&args)
|
||||
_widget->setWindowFlag(Qt::WindowStaysOnTopHint, false);
|
||||
_widget->setInnerSize(st::botWebViewPanelSize, true);
|
||||
|
||||
const auto panel = _widget.get();
|
||||
rpl::duplicate(
|
||||
args.title
|
||||
) | rpl::start_with_next([=](const QString &title) {
|
||||
const auto value = tr::lng_credits_box_history_entry_miniapp(tr::now)
|
||||
+ u": "_q
|
||||
+ title;
|
||||
panel->window()->setWindowTitle(value);
|
||||
}, panel->lifetime());
|
||||
|
||||
const auto params = _delegate->botThemeParams();
|
||||
updateColorOverrides(params);
|
||||
|
||||
|
Reference in New Issue
Block a user