Fix warning from missing inline media controller
This commit is contained in:
parent
3286fd154d
commit
7e6d1591b1
@ -43,8 +43,8 @@ class TagsProxyModel : public QSortFilterProxyModel
|
|||||||
public:
|
public:
|
||||||
explicit TagsProxyModel(QObject *parent = nullptr);
|
explicit TagsProxyModel(QObject *parent = nullptr);
|
||||||
|
|
||||||
Tags* tags() const;
|
Tags *tags() const;
|
||||||
void setTags(Tags* tags);
|
void setTags(Tags *tags);
|
||||||
|
|
||||||
QString filterTagId() const;
|
QString filterTagId() const;
|
||||||
void setFilterTagId(const QString &filterTagId);
|
void setFilterTagId(const QString &filterTagId);
|
||||||
|
|||||||
@ -233,7 +233,11 @@ MainPageTile {
|
|||||||
var d = thingsProxy.get(i);
|
var d = thingsProxy.get(i);
|
||||||
var st = d.thingClass.stateTypes.findByName("playbackStatus")
|
var st = d.thingClass.stateTypes.findByName("playbackStatus")
|
||||||
var s = d.states.getState(st.id)
|
var s = d.states.getState(st.id)
|
||||||
s.valueChanged.connect(function() {inlineMediaControl.updateTile()})
|
s.valueChanged.connect(function() {
|
||||||
|
if (inlineMediaControl) {
|
||||||
|
inlineMediaControl.updateTile()
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
updateTile();
|
updateTile();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user