Make Specify Dimensions work again
This commit is contained in:
@@ -112,4 +112,11 @@ SpecifyDimensions::on_SpecifyDimensions_accepted()
|
|||||||
}
|
}
|
||||||
main_window->show();
|
main_window->show();
|
||||||
emit main_window->updateWindowRememberOption();
|
emit main_window->updateWindowRememberOption();
|
||||||
|
|
||||||
|
if (vid_resize == 1) {
|
||||||
|
main_window->resize(ui->spinBoxWidth->value() / (!dpi_scale ? util::screenOfWidget(this)->devicePixelRatio() : 1.), (ui->spinBoxHeight->value() / (!dpi_scale ? util::screenOfWidget(this)->devicePixelRatio() : 1.))
|
||||||
|
+ main_window->menuBar()->height()
|
||||||
|
+ (main_window->statusBar()->height() * !hide_status_bar)
|
||||||
|
+ (main_window->ui->toolBar->height() * !hide_tool_bar));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user