File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -363,6 +363,11 @@ def main():
363363 "--kcachegrind" ,
364364 action = "store_true" )
365365
366+ parser .add_argument (
367+ "--no-splash" ,
368+ action = "store_true" ,
369+ help = "Disable the splash screen on startup" )
370+
366371 program_arguments = parser .parse_args ()
367372
368373 # make the Python warnings go to Friture logger
@@ -437,15 +442,17 @@ def main():
437442 os .environ ['PIPEWIRE_ALSA' ] = '{ application.name = "Friture" }'
438443
439444 # Splash screen
440- pixmap = QPixmap (":/images/splash.png" )
441- splash = QSplashScreen (pixmap )
442- splash .show ()
443- splash .showMessage ("Initializing the audio subsystem" )
444- app .processEvents ()
445+ if not program_arguments .no_splash :
446+ pixmap = QPixmap (":/images/splash.png" )
447+ splash = QSplashScreen (pixmap )
448+ splash .show ()
449+ splash .showMessage ("Initializing the audio subsystem" )
450+ app .processEvents ()
445451
446452 window = Friture ()
447453 window .show ()
448- splash .finish (window )
454+ if not program_arguments .no_splash :
455+ splash .finish (window )
449456
450457 profile = "no" # "python" or "kcachegrind" or anything else to disable
451458
You can’t perform that action at this time.
0 commit comments