Skip to content

Commit

Permalink
Disable manual start when generator stopped by tank level condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinvdZee committed Feb 10, 2025
1 parent 2007d99 commit e35d255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/GeneratorManualControlButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ListItemButton {
property int _generatorStateBeforeDialogOpen: -1

flat: true
enabled: _state.value !== VenusOS.Generators_State_Error
enabled: _state.value !== VenusOS.Generators_State_Error && _state.value !== VenusOS.Generators_State_Stopped_By_Tank_Level
&& Global.systemSettings.canAccess(VenusOS.User_AccessType_User)
color: enabled ? Theme.color_font_primary : Theme.color_font_disabled
backgroundColor: checked ? Theme.color_dimRed : Theme.color_dimGreen
Expand Down

0 comments on commit e35d255

Please sign in to comment.