single windowed overlay

parent 11b0ada8
......@@ -223,6 +223,12 @@ Examples:
help='RustDesk ID for periodic whoami API calls (enables /api/whoami endpoint)'
)
parser.add_argument(
'--overlay-single',
action='store_true',
help='Enable single window overlay mode (overlay stacks on top of player widget instead of separate window)'
)
return parser.parse_args()
def validate_arguments(args):
......@@ -291,6 +297,9 @@ def main():
# SSL settings
settings.web.enable_ssl = args.ssl
# Overlay settings
settings.qt.overlay_single_window = args.overlay_single
if args.db_path:
settings.database_path = args.db_path
......
......@@ -228,6 +228,7 @@ class QtConfig:
overlay_enabled: bool = True
default_template: str = "news_template"
overlay_opacity: float = 0.9
overlay_single_window: bool = False
# Performance settings
hardware_acceleration: bool = True
......
......@@ -138,6 +138,9 @@ class MbetterClientApplication:
stored_settings.debug_overlay = self.settings.debug_overlay
stored_settings.debug_player = self.settings.debug_player
# Preserve command line overlay settings
stored_settings.qt.overlay_single_window = self.settings.qt.overlay_single_window
# Preserve command line SSL settings
stored_settings.web.enable_ssl = self.settings.web.enable_ssl
stored_settings.web.ssl_cert_path = self.settings.web.ssl_cert_path
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment