Parcourir la source

BugFix: BottomBar File delete if no file exists

master
Dirk Alders il y a 3 ans
Parent
révision
a8d41059c5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      signals.py

+ 1
- 1
signals.py Voir le fichier

@@ -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
 

Chargement…
Annuler
Enregistrer