This commit is contained in:
Pengfei
2021-08-18 11:17:10 +08:00
parent 61eb960c0e
commit 16e41c8fd4
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -27,7 +27,8 @@ void DPIAwareDialog::showEvent(QShowEvent* event) {
#ifdef __APPLE__
// Note: macOS implements system level virtualization, so there's no need to connect here.
// but we still need to call SetContentSizes() at least once to set up the UI
resize(original_width, original_height);
// macOS style has more padding. Make the dialog larger for compensation.
resize(original_width * 1.25, original_height * 1.25);
SetContentSizes();
#else
resized = false;
+1
View File
@@ -460,6 +460,7 @@ void ImportDialog::RepopulateContent() {
ui->main->setSortingEnabled(true);
connect(ui->main, &QTreeWidget::itemChanged, this, &ImportDialog::OnItemChanged);
UpdateSizeDisplay();
}
void ImportDialog::UpdateSizeDisplay() {