Fix tab direction not applying to popup window (#2839)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user