Skip to content

Commit

Permalink
GUI: Don't show the "Open URL" button if there is no backend support
Browse files Browse the repository at this point in the history
  • Loading branch information
bgK committed Sep 10, 2016
1 parent 1f2a50b commit ff217ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gui/storagewizarddialog.cpp
Expand Up @@ -292,7 +292,10 @@ void StorageWizardDialog::containerWidgetsReflow() {
if (_picture) {
_picture->setVisible(g_system->getOverlayWidth() > 320);
}
if (_openUrlWidget) _openUrlWidget->setVisible(true);
if (_openUrlWidget) {
bool visible = g_system->hasFeature(OSystem::kFeatureOpenUrl);
_openUrlWidget->setVisible(visible);
}
if (_pasteCodeWidget) {
bool visible = showFields && g_system->hasFeature(OSystem::kFeatureClipboardSupport);
_pasteCodeWidget->setVisible(visible);
Expand Down

0 comments on commit ff217ea

Please sign in to comment.