mirror of
https://github.com/1j01/textual-paint.git
synced 2025-01-03 04:16:48 +03:00
Fix mismatch between file opening behavior of Open dialog vs CLI arg
This commit is contained in:
parent
c3763523bd
commit
56ad762819
2
paint.py
2
paint.py
@ -1253,7 +1253,7 @@ class PaintApp(App):
|
||||
content = f.read() # f is out of scope in go_ahead()
|
||||
def go_ahead():
|
||||
try:
|
||||
new_image = AnsiArtDocument.from_ansi(content)
|
||||
new_image = AnsiArtDocument.from_text(content)
|
||||
except Exception as e:
|
||||
# "This is not a valid bitmap file, or its format is not currently supported."
|
||||
# string from MS Paint doesn't apply well here,
|
||||
|
Loading…
Reference in New Issue
Block a user