mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Improve separate window support.
This commit is contained in:
@@ -911,8 +911,10 @@ void Widget::chosenRow(const ChosenRow &row) {
|
||||
if (controller()->shownForum().current() == forum) {
|
||||
controller()->closeForum();
|
||||
} else if (row.newWindow) {
|
||||
controller()->showInNewWindow(
|
||||
Window::SeparateId(Window::SeparateType::Forum, history));
|
||||
const auto type = forum->channel()->useSubsectionTabs()
|
||||
? Window::SeparateType::Chat
|
||||
: Window::SeparateType::Forum;
|
||||
controller()->showInNewWindow(Window::SeparateId(type, history));
|
||||
} else {
|
||||
controller()->showForum(
|
||||
forum,
|
||||
|
||||
Reference in New Issue
Block a user