Sfoglia il codice sorgente

create a global loading view

jblanked 9 mesi fa
parent
commit
35caf7d2f7
3 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 1 0
      flip_social.c
  2. 1 0
      flip_social.h
  3. 7 0
      free/free.c

+ 1 - 0
flip_social.c

@@ -24,3 +24,4 @@ char *flip_social_notification_type[] = {"OFF", "ON"};
 uint8_t flip_social_notification_type_index = 0;
 uint8_t flip_social_notification_type_index = 0;
 
 
 bool went_to_friends = false;
 bool went_to_friends = false;
+Loading *loading_global = NULL;

+ 1 - 0
flip_social.h

@@ -334,4 +334,5 @@ extern char *flip_social_notification_type[];
 extern uint8_t flip_social_notification_type_index;
 extern uint8_t flip_social_notification_type_index;
 //
 //
 extern bool went_to_friends;
 extern bool went_to_friends;
+extern Loading *loading_global;
 #endif
 #endif

+ 7 - 0
free/free.c

@@ -36,6 +36,13 @@ void free_all(bool should_free_variable_item_list, bool should_free_submenu, voi
 
 
     // free flipper_http
     // free flipper_http
     free_flipper_http();
     free_flipper_http();
+
+    // free global loading
+    if (loading_global)
+    {
+        loading_free(loading_global);
+        loading_global = NULL;
+    }
 }
 }
 void free_text_input()
 void free_text_input()
 {
 {