Skip to content

Commit

Permalink
[license] Fix license file exist check
Browse files Browse the repository at this point in the history
  • Loading branch information
IceflowRE committed Dec 18, 2023
1 parent 2c490a7 commit 750d9e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ License class.

### Changelog

#### 1.7.5

- Fix license file existing check

#### 1.7.4

- Fix show engine component
Expand Down
2 changes: 1 addition & 1 deletion addons/licenses/component.gd
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func get_warnings() -> PackedStringArray:
var license: License = self.licenses[idx]
if license.name == "":
res.append("license [" + str(idx) + "] name is empty")
if license.file != "" && FileAccess.file_exists(license.file):
if license.file != "" && !FileAccess.file_exists(license.file):
res.append("license [" + str(idx) + "] file '" + license.file + "' does not exst")
if self.copyright.is_empty():
res.append("no copyright")
Expand Down
2 changes: 1 addition & 1 deletion addons/licenses/plugin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
name="License Manager"
description="Manage license and copyright for third party graphics, software or libraries."
author="Iceflower S"
version="1.7.4"
version="1.7.5"
script="plugin.gd"
license="MIT"
repository="https://github.com/kenyoni-software/godot-addons"
Expand Down

0 comments on commit 750d9e4

Please sign in to comment.