From 5a5591d7b4058dcddaf73f8db68b4f9b4edca483 Mon Sep 17 00:00:00 2001 From: okvdai <108829133+okvdai@users.noreply.github.com> Date: Mon, 31 Jul 2023 22:58:52 +0200 Subject: [PATCH] Update pulse-loeb-component.nut --- .../mod/scripts/vscripts/pulse-loeb-component.nut | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/mods/ToneAPI.pulse/mod/scripts/vscripts/pulse-loeb-component.nut b/mods/ToneAPI.pulse/mod/scripts/vscripts/pulse-loeb-component.nut index 1f4b592..052b98c 100644 --- a/mods/ToneAPI.pulse/mod/scripts/vscripts/pulse-loeb-component.nut +++ b/mods/ToneAPI.pulse/mod/scripts/vscripts/pulse-loeb-component.nut @@ -1,18 +1,7 @@ global function pulseRegisterWithLoeb -global function pulseLoebFunc void function pulseRegisterWithLoeb() { - loebLogMod(pulseLoebFunc()) -} - -void function pulseLoebFunc() -{ - print("func called") - GetStats() -} - -void function GetStats() -{ - loebSetLockedButton(Localize("#MENU_TITLE_STATS"), pulseGetData()) + bool success = pulseGetData() + loebSetLockedButton(Localize("#MENU_TITLE_STATS"), success) } \ No newline at end of file