Fix tab direction not applying to popup window (#2839)

This commit is contained in:
Tal Neoran 2021-05-30 13:22:26 +03:00 committed by GitHub
parent faae2c2e8e
commit 01bda9c2f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()