From 89cd3688061703e31cc42e8101e15ad883a0a4f3 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 13 Apr 2024 10:01:06 +0300 Subject: [PATCH] update window title on tab change --- src/Entity/App.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Entity/App.php b/src/Entity/App.php index a88ea041..e76d2f93 100644 --- a/src/Entity/App.php +++ b/src/Entity/App.php @@ -83,6 +83,10 @@ class App 'switch-page', function ($tabs, $child, $position) { + $this->setTitle( + $tabs->get_tab_label_text($child) + ); + if ('+' == $tabs->get_tab_label_text($child)) { $page = $this->blankPage();