on xenial help sign in
Only call reset() if the indicator plugin has it

That way we avoid warnings such as: file:///[...]/Panel/MenuContent.qml:102: TypeError: Object ClockPage_QMLTYPE_207(0x2dfa6d0) has no method 'reset'

commit9e6c6cd6b1bd6042f6fbb826eba7c865b8e76fee authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateTue 2 Jul 2013, 17:33 (13 years ago) parent6793897
1 file changed+2−2
Panel/MenuContent.qml+2−2
Panel/MenuContent.qml+2−2
@@ -98,8 +98,8 @@ Rectangle {
9898 visible: content.__shown
9999 onVisibleChanged: {
100100 // Reset the indicator states
101− if (!visible && item) {
102− //item.reset()
101+ if (!visible && item && item["reset"]) {
102+ item.reset()
103103 }
104104 }
105105 asynchronous: true