diff --git a/qt.py b/qt.py index 1e9c7b9..78bc168 100644 --- a/qt.py +++ b/qt.py @@ -1758,7 +1758,7 @@ class WillSettingsWidget(QWidget): _logger.info(f"File opened with default app: {temp_path}") else: export_meta_gui( - self.bal_window.window, f"will_event.csv", BalCalendar.save_to_cwd + self.bal_window.window, f"will_event.ics", BalCalendar.save_to_cwd ) def on_locktime_change(self): @@ -4012,9 +4012,10 @@ class BalCalendar: return False @staticmethod - def save_to_cwd(path, filename="evento.ics"): + def save_to_cwd(path, filename="event.ics"): target = os.path.abspath(filename) # se il file esiste, sovrascrive + _logger.debug(f"save_to_cwd {path},{filename}") with open(path, "rb") as src, open(target, "wb") as dst: dst.write(src.read()) return target