mirror of
https://git.wetfence.xyz/RandyTheSilly/1-More-Episode.git
synced 2026-10-28 18:58:16 -04:00
Make PKJS work (now successfully hitting Jellyfin API)
This commit is contained in:
1 parent
72f2bf23d8
commit
4b74403eb2
3 files changed
+14
-19
No files matched your search
+2
-4
@@ -4,7 +4,6 @@
|
||||
|
||||
// declare pkjs statics
|
||||
static bool s_js_ready;
|
||||
static bool s_js_pending;
|
||||
|
||||
// declare window statics
|
||||
static Window *s_main_window;
|
||||
@@ -34,8 +33,6 @@ static void send_to_pkjs() {
|
||||
text_layer_set_text(s_last_episode_layer, "outbox_send failure ");
|
||||
return;
|
||||
}
|
||||
|
||||
s_js_pending = false;
|
||||
}
|
||||
|
||||
static void inbox_received_handler(DictionaryIterator *iter, void *context) {
|
||||
@@ -43,7 +40,8 @@ static void inbox_received_handler(DictionaryIterator *iter, void *context) {
|
||||
if (ready_tuple) {
|
||||
s_js_ready = true;
|
||||
}
|
||||
APP_LOG(APP_LOG_LEVEL_INFO, "Received JS_READY");
|
||||
APP_LOG(APP_LOG_LEVEL_INFO, "Received JS_READY, calling PKJS...");
|
||||
send_to_pkjs();
|
||||
}
|
||||
|
||||
static void inbox_dropped_handler(AppMessageResult reason, void *context) {
|
||||
|
||||
Reference in new issue
Block a user