aboutsummaryrefslogtreecommitdiff
path: root/gui/options.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2020-01-04 15:33:57 +0100
committerBastien Bouclet2020-01-04 17:48:13 +0100
commitcb2bb8fac7356e5f8231f855a8aa26d32ea9befa (patch)
treeef27d637cf328c10e08444126aedaa00cf799014 /gui/options.cpp
parent214042560531e069e7089f6058be5eb88397d15e (diff)
downloadscummvm-rg350-cb2bb8fac7356e5f8231f855a8aa26d32ea9befa.tar.gz
scummvm-rg350-cb2bb8fac7356e5f8231f855a8aa26d32ea9befa.tar.bz2
scummvm-rg350-cb2bb8fac7356e5f8231f855a8aa26d32ea9befa.zip
GUI: Add clear button for the plugins path
The other paths have one.
Diffstat (limited to 'gui/options.cpp')
-rw-r--r--gui/options.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index 137494f211..239c88bdd4 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -78,6 +78,7 @@ enum {
kChooseExtraDirCmd = 'chex',
kExtraPathClearCmd = 'clex',
kChoosePluginsDirCmd = 'chpl',
+ kPluginsPathClearCmd = 'clpl',
kChooseThemeCmd = 'chtf',
kUpdatesCheckCmd = 'updc',
kKbdMouseSpeedChanged = 'kmsc',
@@ -1465,6 +1466,7 @@ GlobalOptionsDialog::GlobalOptionsDialog(LauncherDialog *launcher)
_extraPathClearButton = 0;
#ifdef DYNAMIC_MODULES
_pluginsPath = 0;
+ _pluginsPathClearButton = 0;
#endif
_curTheme = 0;
_rendererPopUpDesc = 0;
@@ -1649,6 +1651,8 @@ void GlobalOptionsDialog::build() {
else
new ButtonWidget(tab, "GlobalOptions_Paths.PluginsButton", _c("Plugins Path:", "lowres"), 0, kChoosePluginsDirCmd);
_pluginsPath = new StaticTextWidget(tab, "GlobalOptions_Paths.PluginsPath", _c("None", "path"));
+
+ _pluginsPathClearButton = addClearButton(tab, "GlobalOptions_Paths.PluginsPathClearButton", kPluginsPathClearCmd);
#endif
#endif
@@ -2271,6 +2275,11 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
case kSavePathClearCmd:
_savePath->setLabel(_("Default"));
break;
+#ifdef DYNAMIC_MODULES
+ case kPluginsPathClearCmd:
+ _pluginsPath->setLabel(_c("None", "path"));
+ break;
+#endif
#ifdef USE_CLOUD
#ifdef USE_SDL_NET
case kRootPathClearCmd: