print status bar command in calendar windows

This commit is contained in:
2026-05-10 07:18:10 -04:00
parent 685b1c4241
commit 8d30d8021f
2 changed files with 4 additions and 11 deletions

2
bal.py
View File

@@ -51,7 +51,7 @@ class BalPlugin(BasePlugin):
__version__ = "0.2.8" #AUTOMATICALLY GENERATED DO NOT EDIT __version__ = "0.2.8" #AUTOMATICALLY GENERATED DO NOT EDIT
default_app={ default_app={
"Linux":"xdg-open", "Linux":"xdg-open",
"Windows":"start", "Windows":"cmd /c start",
"Darwin":"open" "Darwin":"open"
} }
chainname = constants.net.NET_NAME if constants.net.NET_NAME != "mainnet" else "bitcoin" chainname = constants.net.NET_NAME if constants.net.NET_NAME != "mainnet" else "bitcoin"

13
qt.py
View File

@@ -107,8 +107,6 @@ class Plugin(BalPlugin):
@hook @hook
def create_status_bar(self, sb): def create_status_bar(self, sb):
_logger.info("HOOK create status bar") _logger.info("HOOK create status bar")
print("STATUS_BAR")
Util.print_var(sb)
b = StatusBarButton( b = StatusBarButton(
read_QIcon_from_bytes(self.read_file("icons/bal32x32.png")), read_QIcon_from_bytes(self.read_file("icons/bal32x32.png")),
"Bal " + _("Bitcoin After Life"), "Bal " + _("Bitcoin After Life"),
@@ -4036,14 +4034,9 @@ class BalCalendar:
try: try:
subprocess.check_call([calendar_app, path]) subprocess.check_call([calendar_app, path])
return True return True
except Exception as _e: except Exception as e:
_logger.error(f"starting calendar app linux failed:{_e}") _logger.error(f"starting calendar app {e}")
try: return False
import os
os.startfile(path)
except Exception as e:
_logger.error(f"starting calendar app {e}")
return False
@staticmethod @staticmethod