Skip to content

Commit

Permalink
Check whether the extension being installed got copied succesfully
Browse files Browse the repository at this point in the history
  • Loading branch information
OverloadedOrama committed Sep 8, 2023
1 parent 0bb6d1d commit e9e80e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Preferences/HandleExtensions.gd
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ func _ready() -> void:

func install_extension(path: String) -> void:
var file_name := path.get_file()
var dir := DirAccess.copy_absolute(path, EXTENSIONS_PATH.path_join(file_name))
var err := DirAccess.copy_absolute(path, EXTENSIONS_PATH.path_join(file_name))
if err != OK:
print(err)
return
_add_extension(file_name)


Expand Down

0 comments on commit e9e80e2

Please sign in to comment.