[Linux] Add CLI flag to hide the window on startup

I like to start this program when connecting to my AirPods and it isn't
necessary for me to have the window pop up. Therefore, using the --hide
flag when starting the program will hide the window on startup.

This could also be a configuration option (e.g. 'Start minimized') but I
went with the CLI flag for simplicity for now. However, if this is a
more viable option (and it may be better in the future), I can implement
this as an option in the settings instead.
This commit is contained in:
jdholtz
2025-04-23 12:43:31 -07:00
committed by Tim Gromeyer
parent ed0de4d9fa
commit c320b4e27d
2 changed files with 12 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ import QtQuick.Controls 2.15
ApplicationWindow {
id: mainWindow
visible: true
visible: !airPodsTrayApp.hideOnStart
width: 400
height: 300
title: "AirPods Settings"