瀏覽代碼

BugFix: BottomBar File delete if no file exists

master
Dirk Alders 3 年之前
父節點
當前提交
a8d41059c5
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      signals.py

+ 1
- 1
signals.py 查看文件

@@ -31,7 +31,7 @@ def bottombar_auto_delete_file_on_change(instance: BottomBar, **kwargs):
31 31
         return False
32 32
 
33 33
     new_file = instance.icon
34
-    if not old_file == new_file:
34
+    if not old_file == new_file and old_file:
35 35
         if os.path.isfile(old_file.path):
36 36
             os.remove(old_file.path)
37 37
 

Loading…
取消
儲存