return str from load_resource()

This commit is contained in:
xxyzz 2020-12-03 19:02:09 +08:00
parent 0e0d7d8b14
commit a1059650f6
No known key found for this signature in database
GPG Key ID: F796163E6DCFEE9D
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class ConfigWidget(QWidget):
def load_resource(self, name):
with ZipFile(self.plugin_path, 'r') as zf:
if name in zf.namelist():
return zf.read(name)
return zf.read(name).decode('utf-8')
return ""