MCPcopy Create free account
hub / github.com/audacity/audacity / OnAppInitialized

Function OnAppInitialized

libraries/lib-utility/AppEvents.cpp:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40} // namespace
41
42void OnAppInitialized(std::function<void()> callback)
43{
44 assert(callback);
45
46 if (!callback)
47 return;
48
49 auto& handlers = GetEventHandlers();
50
51 if (handlers.AppInitializedCalled)
52 callback();
53 else
54 handlers.appInitialized.push_back(std::move(callback));
55}
56
57void OnAppClosing(std::function<void()> callback)
58{

Callers 6

HousekeeperMethod · 0.85
NewFieldRegisteredMethod · 0.85
TaskExecutionHandlerMethod · 0.85
CloudLoginHandlerMethod · 0.85
GetEffectsHandlerMethod · 0.85

Calls 3

callbackFunction · 0.85
moveFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected