Refine dialog initialization and noisy repaint logs

This commit is contained in:
Codex
2026-03-23 15:21:48 +08:00
parent dde570ac3c
commit 4a6e153da5
9 changed files with 117 additions and 58 deletions
+1 -3
View File
@@ -9,7 +9,6 @@ namespace StellarX
SX_LOGI("MessageBox") << "show: Message=" << dlg.GetText()
<< " modal=" << (dlg.model() ? 1 : 0);
dlg.setInitialization(true);
dlg.Show();
return dlg.GetResult();
}
@@ -28,7 +27,6 @@ namespace StellarX
SX_LOGI("MessageBox") << "show: Message=" << dlg->GetText()
<< " modal=" << (dlg->model() ? 1 : 0);
Dialog* dlgPtr = dlg.get();
dlgPtr->setInitialization(true);
// 设置回调
if (onResult)
dlgPtr->SetResultCallback(std::move(onResult));
@@ -36,4 +34,4 @@ namespace StellarX
wnd.addDialog(std::move(dlg));
dlgPtr->Show();
}
}
}