forked from bitcoinafterlife/bal-electrum-plugin
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}")
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user