T56: Settings › Terminal checks for updates, which the owner asked for after 0.1.5: under Ely, a switch, on by default, checks at start and once a day through curl and Gitea's API, and Check now checks at once; the row says what the check found, a newer release brings Download, which opens its page, and one an automatic check finds posts a notification whose press opens it
This commit is contained in:
13 files changed
+296
-11
No files matched your search
@@ -17,7 +17,7 @@ use gpui::{
|
||||
};
|
||||
|
||||
use super::{Settings, SettingsStore};
|
||||
use crate::{app::APP_ID, menus, term::BLINK};
|
||||
use crate::{app::APP_ID, menus, term::BLINK, updates::Updates};
|
||||
|
||||
mod appearance;
|
||||
mod terminal;
|
||||
@@ -100,6 +100,7 @@ pub struct SettingsWindow {
|
||||
lit: bool,
|
||||
_typed: Subscription,
|
||||
_settings: Subscription,
|
||||
_updates: Subscription,
|
||||
_blink: Task<()>,
|
||||
}
|
||||
|
||||
@@ -133,6 +134,7 @@ impl SettingsWindow {
|
||||
lit: true,
|
||||
_typed: typed,
|
||||
_settings: cx.observe_global::<SettingsStore>(|_, cx| cx.notify()),
|
||||
_updates: cx.observe_global::<Updates>(|_, cx| cx.notify()),
|
||||
_blink: Self::blink(cx),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user