mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 05:07:10 +02:00
Try settings window title for miniapps.
This commit is contained in:
parent
88e80b4fae
commit
df7dc1583d
1 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue