print: allow directory deletion

This commit is contained in:
alfrix
2022-12-01 10:25:59 -03:00
parent 91b505bfef
commit 7651b892b8
2 changed files with 14 additions and 1 deletions

View File

@@ -761,6 +761,8 @@ class KlipperScreen(Gtk.Window):
self.gtk.remove_dialog(dialog)
if response_id == Gtk.ResponseType.OK:
self._send_action(None, method, params)
if method == "server.files.delete_directory":
GLib.timeout_add_seconds(2, self.files.refresh_files)
def _send_action(self, widget, method, params):
logging.info(f"{method}: {params}")