Cleanup file save error

This commit is contained in:
itdominator 2024-03-24 23:07:14 -05:00
parent 01f4d17ccc
commit 794cd3015a
1 changed files with 2 additions and 2 deletions

View File

@ -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":