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

Method Start

src/update/UpdateManager.cpp:77–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void UpdateManager::Start(bool suppressModal)
78{
79 auto& instance = GetInstance();
80
81 if (!suppressModal && !prefUpdatesNoticeShown.Read())
82 {
83 // DefaultUpdatesCheckingFlag survives the "Reset Preferences"
84 // action, so check, if the updates were previously disabled as well.
85 if (DefaultUpdatesCheckingFlag->Read())
86 {
87 UpdateNoticeDialog notice(nullptr);
88
89 int result = notice.ShowModal();
90 SendAnonymousUsageInfo->Write(result != wxNO);
91 GetInstance().UpdatePrefs();
92 }
93
94 prefUpdatesNoticeShown.Write(true);
95 gPrefs->Flush();
96 }
97
98 static std::once_flag flag;
99 std::call_once(flag, [&instance] {
100 instance.mTimer.SetOwner(&instance, ID_TIMER);
101 instance.mTimer.StartOnce(1);
102 });
103}
104
105VersionPatch UpdateManager::GetVersionPatch() const
106{

Callers 15

TaskExecutionHandlerMethod · 0.45
AudacityApp.cppFile · 0.45
HideSplashScreenMethod · 0.45
InitPart2Method · 0.45
TimerRecordDialogMethod · 0.45
RestartTimerMethod · 0.45
Benchmark.cppFile · 0.45
OnIdleMethod · 0.45
OnMouseEventMethod · 0.45
ApplyMethod · 0.45

Calls 6

SetOwnerMethod · 0.80
ReadMethod · 0.45
ShowModalMethod · 0.45
WriteMethod · 0.45
UpdatePrefsMethod · 0.45
FlushMethod · 0.45

Tested by

no test coverage detected