D29827: Give users the ability to disable the microphone indicator

Giusy Margarita noreply at phabricator.kde.org
Fri May 22 20:16:33 BST 2020


kurmikon created this revision.
kurmikon added reviewers: ngraham, VDG, Plasma.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
kurmikon requested review of this revision.

REVISION SUMMARY
  Plasma is an high customizable desktop environment. When it comes to system tray, you can disable battery indicator, volume applet, touchpad indicator, notification applet, etc. Some of these actions are pointless, why someone would disable the volume applet not showing it, not only in the tray, but also in the dropdown menu, since it's crucial to system?
  
  But Plasma gives you this opportunity because it's customizable. However, when it come to microphone indicator: no, you can't do nothing. It stays there, you can only hide it, but it's still present in the dropdown menu, even when you don't want it, even when you don't need it, even when it's frustrating while you're using PulseEffects and it tells you something wrong (see here <https://bugs.kde.org/show_bug.cgi?id=410637> and here <https://phabricator.kde.org/D29312>).
  
  Maybe you want to disable it, but unfortunately who made it didn't think to add this ability. The funny thing is that the MicrophoneIndicator class has an enabledChanged signal unused, so maybe they were planning to add the feature to enable/disable it, but that was never done.
  
  So this diff adds this option showing a checkbox inside general configuration.
  
  F8349089: Screenshot_20200522_193809.png <https://phabricator.kde.org/F8349089>

TEST PLAN
  I made different attempts to achieve this. The class was imagined like a singleton, but it's not really a singleton, anyway it's initialized by the volume applet and it stays there having only one instance.
  
  Exposing it inside the configuration window made some issues because multiple instances where showing and, consequently, more indicators appeared in the tray.
  
  So i modified it like a real singleton. Registering it inside the config window was correctly done but, unfortunately, the engine was destroyng the class when the window was closed, leaving the other one in the applet pointing to nowhere and the system crashed.
  
  Then I made an interface to act on it being able to enable/disable the indicator. The engine could construct and destroy the interface many times, but the singleton is always alive.
  
  I tested it on my system and it's working. Please, test on yours. If there's a better method to do this, discuss here, Thanks.

REPOSITORY
  R115 Plasma Audio Volume Applet

REVISION DETAIL
  https://phabricator.kde.org/D29827

AFFECTED FILES
  applet/contents/config/main.xml
  applet/contents/ui/ConfigGeneral.qml
  applet/contents/ui/main.qml
  src/qml/microphoneindicator.cpp
  src/qml/microphoneindicator.h
  src/qml/plugin.cpp

To: kurmikon, ngraham, #vdg, #plasma
Cc: ngraham, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, ragreen, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200522/0ddc86fd/attachment-0001.htm>


More information about the Plasma-devel mailing list