mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fix tab direction not applying to popup window (#2839)
This commit is contained in:
parent
faae2c2e8e
commit
01bda9c2f6
|
@ -66,14 +66,18 @@ Window::Window(WindowType type)
|
|||
if (type == WindowType::Main)
|
||||
{
|
||||
this->resize(int(600 * this->scale()), int(500 * this->scale()));
|
||||
getSettings()->tabDirection.connect([this](int val) {
|
||||
this->notebook_->setTabDirection(NotebookTabDirection(val));
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
this->resize(int(300 * this->scale()), int(500 * this->scale()));
|
||||
}
|
||||
|
||||
if (type == WindowType::Main || type == WindowType::Popup)
|
||||
{
|
||||
getSettings()->tabDirection.connect([this](int val) {
|
||||
this->notebook_->setTabDirection(NotebookTabDirection(val));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
WindowType Window::getType()
|
||||
|
|
Loading…
Reference in a new issue