feat: add command line argument to select/add tab with a channel (#5111)

This commit is contained in:
nerix
2024-01-20 13:20:40 +01:00
committed by GitHub
parent acee654bd2
commit 7951af6104
6 changed files with 174 additions and 2 deletions
+6
View File
@@ -365,6 +365,12 @@ void WindowManager::initialize(Settings &settings, const Paths &paths)
windowLayout = this->loadWindowLayoutFromFile();
}
auto desired = getIApp()->getArgs().activateChannel;
if (desired)
{
windowLayout.activateOrAddChannel(desired->provider, desired->name);
}
this->emotePopupPos_ = windowLayout.emotePopupPos_;
this->applyWindowLayout(windowLayout);