mirror of
https://github.com/ihabunek/toot
synced 2025-01-11 09:03:57 +01:00
Use get_edit_text to avoid trimming
This method returns only the text entered, without the caption.
This commit is contained in:
parent
5606d95c93
commit
37b4f00f6e
@ -30,7 +30,7 @@ class StatusSource(urwid.Padding):
|
||||
super().__init__(frame)
|
||||
|
||||
def save_json(self, button):
|
||||
filename = self.filename_edit.get_text()[0][10:] # skip "Filename: "
|
||||
filename = self.filename_edit.get_edit_text()
|
||||
if filename:
|
||||
with open(filename, "w") as f:
|
||||
f.write(self.source)
|
||||
|
Loading…
Reference in New Issue
Block a user