This commit is contained in:
2026-05-09 10:11:16 -04:00
parent 1965d8f876
commit e3743152c5

5
qt.py
View File

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