Updates: opt-in launch check, Check for Updates…, install after a normal quit, from the Gitea release; dmgs carry an Applications link (UPD-1, REL-1)
This commit is contained in:
28 files changed
+896
-16
No files matched your search
@@ -15,6 +15,10 @@ pub fn run<V: Render>(
|
||||
app: AppId,
|
||||
root: impl FnOnce(AppId, &mut Window, &mut App) -> Entity<V> + 'static,
|
||||
) {
|
||||
// As the installer after an update, nothing else runs.
|
||||
if let Some(code) = crate::updates::installer(app) {
|
||||
std::process::exit(code);
|
||||
}
|
||||
// Before the log: a second copy must not trim it.
|
||||
if let Err(error) = ely_platform::instance::hold(app) {
|
||||
startup::fail(app, &format!("{error}"));
|
||||
@@ -77,6 +81,8 @@ fn open<V: Render>(
|
||||
}
|
||||
theme::install(cx);
|
||||
crate::i18n::install(cx);
|
||||
crate::updates::install(app, cx);
|
||||
cx.on_action(|_: &crate::commands::CheckForUpdates, cx| crate::updates::check_now(cx));
|
||||
crate::commands::bind_keys(cx);
|
||||
crate::commands::bind_quit(cx);
|
||||
cx.on_action(move |_: &crate::commands::OpenSettings, cx| crate::settings::open(app, cx));
|
||||
|
||||
Reference in new issue
Block a user