--- a/PluginMqttMonitor.py Tue Sep 14 18:10:51 2021 +0200 +++ b/PluginMqttMonitor.py Thu Oct 28 18:28:21 2021 +0200 @@ -26,7 +26,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "1.1.2" +version = "1.2.0" className = "MqttMonitorPlugin" packageName = "MqttMonitor" shortDescription = "Plug-in implementing a tool to connect to a MQTT broker" @@ -178,10 +178,11 @@ iconSuffix = "dark" if usesDarkPalette else "light" self.__widget = MqttMonitorWidget(self, usesDarkPalette) - if self.__ui.getLayoutType() == "Sidebars": - iconName = "sbMqttMonitor96" - else: - iconName = "mqtt22-{0}".format(iconSuffix) + iconName = ( + "sbMqttMonitor96" + if self.__ui.getLayoutType() == "Sidebars" else + "mqtt22-{0}".format(iconSuffix) + ) self.__ui.addSideWidget( self.__ui.RightSide, self.__widget, UI.PixmapCache.getIcon(