Verified Commit f67ee21a authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[applet/digital-clock] Port to Plasmoid.self and Connections

Plasmoid.self is a relatively recent thing, but it saves code from hacks
such as this property just for the sake of putting an onChanged handler
for it.
parent 55532aad
......@@ -45,11 +45,13 @@ PlasmaExtras.Representation {
property bool debug: false
property bool isExpanded: Plasmoid.expanded
Connections {
target: Plasmoid.self
onIsExpandedChanged: {
// clear all the selections when the plasmoid is showing/hiding
monthView.resetToToday();
function onExpandedChanged() {
// clear all the selections when the plasmoid is showing/hiding
monthView.resetToToday();
}
}
// Header containing date and pin button
......
Supports Markdown
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