mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-05-05 12:14:49 -04:00
parent
aa3637cc41
commit
497f0e03cb
1 changed files with 4 additions and 1 deletions
|
@ -496,7 +496,10 @@ func remove_backup(i : int) -> void:
|
|||
|
||||
func remove_backup_by_path(project_path : String, backup_path : String) -> void:
|
||||
Directory.new().remove(backup_path)
|
||||
Global.config_cache.erase_section_key("backups", project_path)
|
||||
if Global.config_cache.has_section_key("backups", project_path):
|
||||
Global.config_cache.erase_section_key("backups", project_path)
|
||||
elif Global.config_cache.has_section_key("backups", backup_path):
|
||||
Global.config_cache.erase_section_key("backups", backup_path)
|
||||
Global.config_cache.save("user://cache.ini")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue