[ui] Use a third icon for the file watcher's "enabled" status

Each file watcher's status now has its own icon:
- Enabled: "published_with_changes"
- Disabled: "sync_disabled"
- Minimal: "sync"
This commit is contained in:
Candice Bentéjac 2022-11-21 14:57:52 +01:00
parent 5b4a9adbd5
commit 589ead0d64

View file

@ -954,7 +954,14 @@ ApplicationWindow {
}
MaterialToolButton {
id: filePollerRefreshStatus
text: (_reconstruction.filePollerRefresh === 0 || _reconstruction.filePollerRefresh === 2) ? MaterialIcons.sync : MaterialIcons.sync_disabled
text: {
if (_reconstruction.filePollerRefresh === 0)
return MaterialIcons.published_with_changes
else if (_reconstruction.filePollerRefresh === 2)
return MaterialIcons.sync
else
return MaterialIcons.sync_disabled
}
font.pointSize: 11
padding: 2
enabled: true
@ -989,7 +996,7 @@ ApplicationWindow {
}
// Prevents cases where the user unchecks the currently checked option
enableAutoRefresh.checked = true
filePollerRefreshStatus.text = MaterialIcons.sync
filePollerRefreshStatus.text = MaterialIcons.published_with_changes
}
}
MenuItem {