From fc504996d3ecb828b4f47477911c9449ae8779a6 Mon Sep 17 00:00:00 2001 From: SupSuper Date: Thu, 22 Nov 2018 16:26:04 +0000 Subject: GUI: Allow user to opt between GUI browser and native browser --- gui/browser.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gui') diff --git a/gui/browser.cpp b/gui/browser.cpp index f3176803e3..4c8f0d1295 100644 --- a/gui/browser.cpp +++ b/gui/browser.cpp @@ -88,9 +88,11 @@ int BrowserDialog::runModal() { // Try to use the backend browser Common::DialogManager *dialogManager = g_system->getDialogManager(); if (dialogManager) { - Common::DialogManager::DialogResult result = dialogManager->showFileBrowser(_title, _choice, _isDirBrowser); - if (result != Common::DialogManager::kDialogError) { - return result; + if (ConfMan.getBool("gui_browser_native", Common::ConfigManager::kApplicationDomain)) { + Common::DialogManager::DialogResult result = dialogManager->showFileBrowser(_title, _choice, _isDirBrowser); + if (result != Common::DialogManager::kDialogError) { + return result; + } } } #endif -- cgit v1.2.3