mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-26 04:57:18 +02:00
[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:
parent
5b4a9adbd5
commit
589ead0d64
1 changed files with 9 additions and 2 deletions
|
@ -954,7 +954,14 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
MaterialToolButton {
|
MaterialToolButton {
|
||||||
id: filePollerRefreshStatus
|
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
|
font.pointSize: 11
|
||||||
padding: 2
|
padding: 2
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -989,7 +996,7 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
// Prevents cases where the user unchecks the currently checked option
|
// Prevents cases where the user unchecks the currently checked option
|
||||||
enableAutoRefresh.checked = true
|
enableAutoRefresh.checked = true
|
||||||
filePollerRefreshStatus.text = MaterialIcons.sync
|
filePollerRefreshStatus.text = MaterialIcons.published_with_changes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MenuItem {
|
MenuItem {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue