[UI] Use native file picker by default

This commit is contained in:
Herman S.
2025-10-05 07:07:23 +09:00
parent 6202cf06d5
commit 838e18cb3e
+4 -4
View File
@@ -80,12 +80,12 @@ bool QtFilePicker::Show(Window* parent_window) {
QString::fromUtf8(dir_str.c_str(), static_cast<int>(dir_str.size()));
}
// Try native dialog; Qt will automatically fall back to its own dialog if
// native is unavailable
QString file_path = QFileDialog::getOpenFileName(
qt_window ? qt_window->qwindow() : nullptr, title, initial_dir,
QString(), // filter
nullptr, // selected filter
QFileDialog::DontUseNativeDialog // Use Qt dialog to avoid native API
// issues
QString(), // filter
nullptr // selected filter
);
if (!file_path.isEmpty()) {