Skip to content

Commit

Permalink
Update update-checker.cpp (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
umireon authored Oct 3, 2023
1 parent e4eb91c commit acce8f4
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/update-checker/update-checker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,17 @@ void check_update(void)
return;
}

update_dialog = new UpdateDialog(
info,
(QWidget *)obs_frontend_get_main_window());
QTimer::singleShot(2000, update_dialog,
&UpdateDialog::exec);
try {
update_dialog = new UpdateDialog(
info,
(QWidget *)
obs_frontend_get_main_window());
QTimer::singleShot(2000, update_dialog,
&UpdateDialog::exec);
} catch (...) {
obs_log(LOG_ERROR,
"Failed to construct UpdateDialog");
}
} else {
obs_log(LOG_INFO,
"failed to get latest release information");
Expand Down

0 comments on commit acce8f4

Please sign in to comment.