Commit 410362c1 authored by Nate Graham's avatar Nate Graham 🔩
Browse files

[applets/devicenotifier] Be more selective about showing "Remove all" button

This button only makes sense to show when using the "Removable devices"
setting in the combobox.

BUG: 427175
FIXED-IN: 5.20
(cherry picked from commit a9cef607)
parent b71f4dc1
......@@ -49,6 +49,8 @@ PlasmaComponents3.Page {
}
PlasmaComponents3.ComboBox {
id: displayModeCombobox
Layout.preferredWidth: units.gridUnit * 11
model: [i18n("Removable devices"),
i18n("Non-removable devices"),
......@@ -90,7 +92,8 @@ PlasmaComponents3.Page {
PlasmaComponents3.ToolButton {
id: unmountAll
visible: devicenotifier.mountedRemovables > 1;
visible: devicenotifier.mountedRemovables > 1
&& displayModeCombobox.currentIndex === 0 /* removables only */
icon.name: "media-eject"
text: i18n("Remove All")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment