Turn unnecessary class into namespace
This commit is contained in:
parent
6d6f58538e
commit
34165c7b2b
@ -538,7 +538,7 @@ init python:
|
|||||||
# Grab data
|
# Grab data
|
||||||
if fromfile:
|
if fromfile:
|
||||||
try:
|
try:
|
||||||
imported = ImagePayload().extract(path)
|
imported = image_payload.extract(path)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
renpy.notify("Import failed: Corrupted file.")
|
renpy.notify("Import failed: Corrupted file.")
|
||||||
print(e)
|
print(e)
|
||||||
|
@ -222,7 +222,7 @@ init python:
|
|||||||
)
|
)
|
||||||
|
|
||||||
displayable_to_file(d, path, size=(310, 470) )
|
displayable_to_file(d, path, size=(310, 470) )
|
||||||
ImagePayload().inject("_temp.png", filename, str(exported))
|
image_payload.inject("_temp.png", filename, str(exported))
|
||||||
os.remove(path)
|
os.remove(path)
|
||||||
else:
|
else:
|
||||||
set_clipboard(exported)
|
set_clipboard(exported)
|
||||||
@ -286,4 +286,3 @@ init python:
|
|||||||
if self.has_type(arg):
|
if self.has_type(arg):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user