Skip to content

Commit

Permalink
remove local copy of HelperResources
Browse files Browse the repository at this point in the history
  • Loading branch information
kwindrem committed May 15, 2024
1 parent 139926a commit ff70f6d
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 2,523 deletions.
19 changes: 13 additions & 6 deletions FileSets/PatchSource/PageSettingsGeneral.qml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,15 @@ MbPage
vePlatform.reboot()
}
}

//////// add for Shutdown command
MbSubMenu
{
description: qsTr("Shutdown")
subpage: Component { PageSettingsShutdown {} }
MbSubMenu
{
description: qsTr("Shutdown")
subpage: Component { PageSettingsShutdown {} }
property VBusItem shutdownItem: VBusItem { bind: Utils.path("com.victronenergy.shutdown", "/Shutdown") }
show: shutdownItem.valid
}
show: shutdownItem.valid
}

MbSwitch {
property VBusItem hasBuzzer: VBusItem {bind: "com.victronenergy.system/Buzzer/State"}
Expand All @@ -105,6 +106,12 @@ MbPage
show: hasBuzzer.valid
}

MbSwitch {
name: qsTr("Enable status LEDs")
bind: Utils.path(bindPrefix, "/Settings/LEDs/Enable")
show: item.valid
}

MbItemOptions {
id: demoOnOff
description: qsTr("Demo mode")
Expand Down
6 changes: 6 additions & 0 deletions FileSets/PatchSource/PageSettingsGeneral.qml.orig
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ MbPage
show: hasBuzzer.valid
}

MbSwitch {
name: qsTr("Enable status LEDs")
bind: Utils.path(bindPrefix, "/Settings/LEDs/Enable")
show: item.valid
}

MbItemOptions {
id: demoOnOff
description: qsTr("Demo mode")
Expand Down
23 changes: 12 additions & 11 deletions FileSets/PatchSource/PageSettingsGeneral.qml.patch
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
--- /Users/Kevin/GitHub/ShutdownMonitor.copy/FileSets/PatchSource/PageSettingsGeneral.qml.orig 2024-03-22 19:53:04
+++ /Users/Kevin/GitHub/ShutdownMonitor.copy/FileSets/PatchSource/PageSettingsGeneral.qml 2024-03-22 19:48:02
@@ -89,6 +89,14 @@
vePlatform.reboot()
--- /Users/Kevin/GitHub/ShutdownMonitor.copy/FileSets/PatchSource/PageSettingsGeneral.qml.orig 2024-04-22 04:01:13
+++ /Users/Kevin/GitHub/ShutdownMonitor.copy/FileSets/PatchSource/PageSettingsGeneral.qml 2024-05-02 17:23:48
@@ -90,6 +90,15 @@
}
}

+//////// add for Shutdown command
+ MbSubMenu
+ {
+ description: qsTr("Shutdown")
+ subpage: Component { PageSettingsShutdown {} }
+ MbSubMenu
+ {
+ description: qsTr("Shutdown")
+ subpage: Component { PageSettingsShutdown {} }
+ property VBusItem shutdownItem: VBusItem { bind: Utils.path("com.victronenergy.shutdown", "/Shutdown") }
+ show: shutdownItem.valid
+ }
+ show: shutdownItem.valid
+ }
+
MbSwitch {
property VBusItem hasBuzzer: VBusItem {bind: "com.victronenergy.system/Buzzer/State"}
name: qsTr("Audible alarm")
Loading

0 comments on commit ff70f6d

Please sign in to comment.