code cleanup: deduplicate volume icon logic, mpris time format, sink list
This commit is contained in:
parent
5dc966c916
commit
5dcea32dc3
3 changed files with 30 additions and 49 deletions
|
|
@ -14,12 +14,9 @@ Text {
|
|||
text: _displayIcon
|
||||
|
||||
onIconChanged: {
|
||||
if (_crossfade.running) {
|
||||
_pendingIcon = icon;
|
||||
} else {
|
||||
_pendingIcon = icon;
|
||||
_pendingIcon = icon;
|
||||
if (!_crossfade.running)
|
||||
_crossfade.start();
|
||||
}
|
||||
}
|
||||
|
||||
SequentialAnimation {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue