feat: add notification popup to inform users of malicious ads on megadb

This commit is contained in:
2026-04-10 16:27:53 +02:00
parent 4203969051
commit 14afc821b1
7 changed files with 42 additions and 5 deletions
+3 -1
View File
@@ -8,7 +8,7 @@ import platform
def save_settings(close=lambda: None, apiurl=None, download_path=None, down_speed_limit=None, up_speed_limit=None, image_path=None, autoresume=None, max_connections=None, max_downloads=None, bound_interface=None, image_width=None, image_offset=None, image_opacity=None, image_as_wallpaper=None, image_position=None, accent_color=None, close_to_tray=None):
def save_settings(close=lambda: None, apiurl=None, download_path=None, down_speed_limit=None, up_speed_limit=None, image_path=None, autoresume=None, max_connections=None, max_downloads=None, bound_interface=None, image_width=None, image_offset=None, image_opacity=None, image_as_wallpaper=None, image_position=None, accent_color=None, close_to_tray=None, show_megadb_notification=None):
if apiurl is not None:
state.api_url = apiurl
if download_path is not None:
@@ -45,6 +45,8 @@ def save_settings(close=lambda: None, apiurl=None, download_path=None, down_spee
qdarktheme.setup_theme("auto", custom_colors=custom_colors if custom_colors else None)
if close_to_tray is not None:
state.close_to_tray = close_to_tray
if show_megadb_notification is not None:
state.show_megadb_notification = show_megadb_notification
update_settings() # Update LibTorrent Session Settings
consoleLog("Saved Settings")