Przeglądaj źródła

change str to int fb_order_list

kevin 2 lat temu
rodzic
commit
32721d280c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/mainPalio4.py

+ 1 - 1
src/mainPalio4.py

@@ -335,7 +335,7 @@ def change_tab(path_dest, tabs, tab_icon, package, tab3_mode, tab_amount):
 
 
 def change_fb(path_dest, fb_order, package, fb_icon):
-    fb_order_list = fb_order.split(",")
+    fb_order_list = [int(x) for x in fb_order.split(",")]
     default_fb_icon = ["pb_button_chat.png", "pb_button_call.png", "pb_button_cc.png", "pb_button_stream.png",
                        "nexilis_fb_04.png"]
     for x,i in enumerate(fb_order_list):