File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 2323#include " startupscenario.h"
2424
2525#include < QCoreApplication>
26- #include < QTimer>
2726
2827#include " async/async.h"
29- #include " network/networkerrors.h"
3028#include " translation.h"
3129#include " log.h"
3230
@@ -39,8 +37,6 @@ static const muse::UriQuery WELCOME_DIALOG_URI("musescore://welcomedialog");
3937static const muse::Uri HOME_URI (" musescore://home" );
4038static const muse::Uri NOTATION_URI (" musescore://notation" );
4139
42- static constexpr int CHECK_FOR_UPDATES_TIMEOUT (7500 );
43-
4440static StartupModeType modeTypeTromString (const std::string& str)
4541{
4642 if (" start-empty" == str) {
@@ -150,19 +146,6 @@ muse::async::Promise<muse::Ret> StartupScenario::runOnSplashScreen()
150146 }
151147 });
152148
153- // Timeout if the checks take too long...
154- QTimer::singleShot (CHECK_FOR_UPDATES_TIMEOUT, [this , resolve]() {
155- if (!m_updateChecksInProgress) {
156- return ;
157- }
158-
159- m_updateChecksInProgress = false ;
160-
161- LOGE () << " Update checks timed out..." ;
162- const Ret ret = network::make_ret (network::Err::Timeout);
163- (void )resolve (ret);
164- });
165-
166149 return muse::async::Promise<Ret>::dummy_result ();
167150 });
168151}
You can’t perform that action at this time.
0 commit comments