Merge pull request #6079 from Cacodemon345/specify-dimensions-fixes

Make Specify Dimensions work again
This commit is contained in:
Miran Grča
2025-08-27 20:32:42 +02:00
committed by GitHub

View File

@@ -112,4 +112,11 @@ SpecifyDimensions::on_SpecifyDimensions_accepted()
}
main_window->show();
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));
}
}