BugFix: BottomBar File delete if no file exists
This commit is contained in:
parent
d3b38d9e7a
commit
a8d41059c5
@ -31,7 +31,7 @@ def bottombar_auto_delete_file_on_change(instance: BottomBar, **kwargs):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
new_file = instance.icon
|
new_file = instance.icon
|
||||||
if not old_file == new_file:
|
if not old_file == new_file and old_file:
|
||||||
if os.path.isfile(old_file.path):
|
if os.path.isfile(old_file.path):
|
||||||
os.remove(old_file.path)
|
os.remove(old_file.path)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user