Windows
This commit is contained in:
5
qt.py
5
qt.py
@@ -1758,7 +1758,7 @@ class WillSettingsWidget(QWidget):
|
|||||||
_logger.info(f"File opened with default app: {temp_path}")
|
_logger.info(f"File opened with default app: {temp_path}")
|
||||||
else:
|
else:
|
||||||
export_meta_gui(
|
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):
|
def on_locktime_change(self):
|
||||||
@@ -4012,9 +4012,10 @@ class BalCalendar:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def save_to_cwd(path, filename="evento.ics"):
|
def save_to_cwd(path, filename="event.ics"):
|
||||||
target = os.path.abspath(filename)
|
target = os.path.abspath(filename)
|
||||||
# se il file esiste, sovrascrive
|
# se il file esiste, sovrascrive
|
||||||
|
_logger.debug(f"save_to_cwd {path},{filename}")
|
||||||
with open(path, "rb") as src, open(target, "wb") as dst:
|
with open(path, "rb") as src, open(target, "wb") as dst:
|
||||||
dst.write(src.read())
|
dst.write(src.read())
|
||||||
return target
|
return target
|
||||||
|
|||||||
Reference in New Issue
Block a user