From ffc7bd122e5359d1ffe94ef6a8cae4dc9a7b29bf Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 14 Dec 2019 10:20:55 -0700 Subject: [PATCH] emit Application::ready() at a suitable time during startup This causes macOS to deliver an "openFile" event which allows us to function correctly when started by a click on a .ardour file --- gtk2_ardour/ardour_ui_startup.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/ardour_ui_startup.cc b/gtk2_ardour/ardour_ui_startup.cc index a56b1a38e2..f172305052 100644 --- a/gtk2_ardour/ardour_ui_startup.cc +++ b/gtk2_ardour/ardour_ui_startup.cc @@ -477,10 +477,14 @@ ARDOUR_UI::sfsm_response (StartupFSM::Result r) int ARDOUR_UI::starting () { + Application* app = Application::instance(); + if (ARDOUR_COMMAND_LINE::check_announcements) { check_announcements (); } + app->ready (); + /* we need to create this early because it may need to set the * audio backend end up. */