From a642dfd154b93cfde444a4d55328b3f36447f706 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 16 Dec 2022 17:27:58 +0000 Subject: [PATCH] getters now return boolean values --- lib/macrobuttons.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/macrobuttons.ps1 b/lib/macrobuttons.ps1 index a0da08a..9e95777 100644 --- a/lib/macrobuttons.ps1 +++ b/lib/macrobuttons.ps1 @@ -20,7 +20,7 @@ class MacroButton { hidden $_state = $($this | Add-Member ScriptProperty 'state' ` { - $this.Getter(1) + [bool]$this.Getter(1) } ` { param($arg) @@ -30,7 +30,7 @@ class MacroButton { hidden $_stateonly = $($this | Add-Member ScriptProperty 'stateonly' ` { - $this.Getter(2) + [bool]$this.Getter(2) } ` { param($arg) @@ -40,7 +40,7 @@ class MacroButton { hidden $_trigger = $($this | Add-Member ScriptProperty 'trigger' ` { - $this.Getter(3) + [bool]$this.Getter(3) } ` { param($arg)