Added want HD toggle for resizable SD logout

This commit is contained in:
ipkpjersi 2024-06-18 09:47:12 -04:00
parent 8b1c75afec
commit ba70c3f36c

View file

@ -39,15 +39,21 @@ class plugin : Plugin() {
if (!osNameLowerCase.startsWith("mac")) { if (!osNameLowerCase.startsWith("mac")) {
wantHd = true wantHd = true
} }
//Alternatively, we could just force HD off here, if we want: if (API.GetData("want-hd") == false) {
//wantHd = false wantHd = false
}
} }
override fun ProcessCommand(commandStr: String, args: Array<out String>?) { override fun ProcessCommand(commandStr: String, args: Array<out String>?) {
when(commandStr.toLowerCase()) { when(commandStr.toLowerCase()) {
"::resizablesd" -> { "::toggleresizablesd", "::resizablesd", "::togglersd", "::rsd" -> {
toggleResize = true //We could call toggleResizableSd() directly here, but it's not necessary. toggleResize = true //We could call toggleResizableSd() directly here, but it's not necessary.
} }
"::toggleresizablesdhd", "::resizablesdhd", "::togglersdhd", "::rsdhd", -> {
wantHd = !wantHd
API.StoreData("want-hd", wantHd)
API.SendMessage("You have turned login screen HD " + (if (wantHd) "on" else "off"))
}
} }
} }