Browse Source

BugFix: BottomBar File delete if no file exists

master
Dirk Alders 3 years ago
parent
commit
a8d41059c5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      signals.py

+ 1
- 1
signals.py View File

31
         return False
31
         return False
32
 
32
 
33
     new_file = instance.icon
33
     new_file = instance.icon
34
-    if not old_file == new_file:
34
+    if not old_file == new_file and old_file:
35
         if os.path.isfile(old_file.path):
35
         if os.path.isfile(old_file.path):
36
             os.remove(old_file.path)
36
             os.remove(old_file.path)
37
 
37
 

Loading…
Cancel
Save