Commit ff544ed5 authored by Nate Graham's avatar Nate Graham
Browse files

[applets/devicenotifier] Remove UI to suppress popup for new device connection

This option is just too nerdy to show a UI for. We keep the logic for it
in the code (it's just two lines) but it's now only available for people
who know about this and manually add "popupOnNewDevice=false" to their
plasma-org.kde.plasma.desktop-appletsrc file.

This prevents the applet from being too cluttered with options with the
new design.
parent b878a64c
......@@ -18,6 +18,7 @@
<label>If true it lists all kind of devices. Only one between removableDevices, nonRemovableDevices and allDevices should be set.</label>
<default>false</default>
</entry>
<!-- This option has no visible UI and is only accessible by adding "popupOnNewDevice=false" to the plasma-org.kde.plasma.desktop-appletsrc file-->
<entry name="popupOnNewDevice" type="Bool">
<label>If true it tries to open the plasmoid when a new device is inserted, as a kind of notification.</label>
<default>true</default>
......
......@@ -227,17 +227,4 @@ PlasmaComponents3.Page {
}
}
}
footer: PlasmaExtras.PlasmoidHeading {
id: footerToolbarContainer
location: PlasmaExtras.PlasmoidHeading.Location.Footer
PlasmaComponents3.CheckBox {
anchors.fill: parent
text: i18n("Open when new device is plugged in")
checked: plasmoid.configuration.popupOnNewDevice
onToggled: plasmoid.configuration.popupOnNewDevice = checked
}
}
}
......@@ -275,6 +275,10 @@ Item {
id: expandTimer
interval: 250
onTriggered: {
// We don't show a UI for it, but there is a hidden option to not
// show the popup on new device attachment if the user has added
// the text "popupOnNewDevice=false" to their
// plasma-org.kde.plasma.desktop-appletsrc file.
if (plasmoid.configuration.popupOnNewDevice) { // Bug 351592
plasmoid.expanded = true;
plasmoid.fullRepresentationItem.spontaneousOpen = true;
......
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