From 82e3fa494c2e80fd293aedb00584546aba617a72 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sun, 14 May 2023 19:13:44 -0400 Subject: [PATCH] #229 pocket changes for UI element register change --- pocket/startup.lua | 2 +- pocket/ui/main.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pocket/startup.lua b/pocket/startup.lua index 9ed088c..086cd68 100644 --- a/pocket/startup.lua +++ b/pocket/startup.lua @@ -17,7 +17,7 @@ local coreio = require("pocket.coreio") local pocket = require("pocket.pocket") local renderer = require("pocket.renderer") -local POCKET_VERSION = "alpha-v0.2.6" +local POCKET_VERSION = "alpha-v0.3.0" local println = util.println local println_ts = util.println_ts diff --git a/pocket/ui/main.lua b/pocket/ui/main.lua index 1b7be88..c143b0b 100644 --- a/pocket/ui/main.lua +++ b/pocket/ui/main.lua @@ -45,7 +45,7 @@ local function init(main) local root_pane = MultiPane{parent=root_pane_div,x=1,y=1,panes=root_panes} - coreio.core_ps().subscribe("link_state", function (state) + root_pane.register(coreio.core_ps(), "link_state", function (state) if state == coreio.LINK_STATE.UNLINKED or state == coreio.LINK_STATE.API_LINK_ONLY then root_pane.set_value(1) elseif state == coreio.LINK_STATE.SV_LINK_ONLY then