generated from itdominator/Python-With-Gtk-Template
Cleanup file save error
This commit is contained in:
parent
01f4d17ccc
commit
794cd3015a
|
@ -76,7 +76,7 @@ class FilesController:
|
||||||
content = base64.b64decode( event.content.encode() ).decode("utf-8")
|
content = base64.b64decode( event.content.encode() ).decode("utf-8")
|
||||||
ftype, fname, fpath = self.save_session(event.ftype, event.fpath, content)
|
ftype, fname, fpath = self.save_session(event.ftype, event.fpath, content)
|
||||||
|
|
||||||
if ftype and fname and fpath:
|
if ftype == "buffer" and fname and fpath:
|
||||||
event_system.emit(f"update_tab_{event.originator}", (event.fhash, fname,))
|
event_system.emit(f"update_tab_{event.originator}", (event.fhash, fname,))
|
||||||
event_system.emit(f"updated_session_{event.originator}", (event.fhash, ftype, fname, fpath))
|
event_system.emit(f"updated_session_{event.originator}", (event.fhash, ftype, fname, fpath))
|
||||||
case "load_buffer":
|
case "load_buffer":
|
||||||
|
|
Loading…
Reference in New Issue