Wire Forge-native release infrastructure
Some checks failed
Cache: Publish Nix / Publish Nix Cache (push) Waiting to run
Build Rust / Cargo Test (push) Successful in 4m14s
Build Site / Next.js Build (push) Failing after 6s
Infra: OpenTofu / OpenTofu (grafana) (push) Successful in 5s
Lint Governance / BEP Metadata (push) Successful in 0s
Build: Android / Android Rust Core Stub (push) Failing after 23s
Some checks failed
Cache: Publish Nix / Publish Nix Cache (push) Waiting to run
Build Rust / Cargo Test (push) Successful in 4m14s
Build Site / Next.js Build (push) Failing after 6s
Infra: OpenTofu / OpenTofu (grafana) (push) Successful in 5s
Lint Governance / BEP Metadata (push) Successful in 0s
Build: Android / Android Rust Core Stub (push) Failing after 23s
This commit is contained in:
parent
97c569fb35
commit
002bd382e9
199 changed files with 14268 additions and 185 deletions
|
|
@ -4,12 +4,10 @@ use std::process::Command;
|
|||
#[derive(Debug)]
|
||||
pub struct DaemonGroup {
|
||||
system_setup: SystemSetup,
|
||||
daemon_client: Arc<Mutex<Option<DaemonClient>>>,
|
||||
already_running: bool,
|
||||
}
|
||||
|
||||
pub struct DaemonGroupInit {
|
||||
pub daemon_client: Arc<Mutex<Option<DaemonClient>>>,
|
||||
pub system_setup: SystemSetup,
|
||||
}
|
||||
|
||||
|
|
@ -30,8 +28,8 @@ impl AsyncComponent for DaemonGroup {
|
|||
#[name(group)]
|
||||
adw::PreferencesGroup {
|
||||
#[watch]
|
||||
set_sensitive:
|
||||
(model.system_setup == SystemSetup::AppImage || model.system_setup == SystemSetup::Other) &&
|
||||
set_sensitive:
|
||||
(model.system_setup == SystemSetup::AppImage || model.system_setup == SystemSetup::Other) &&
|
||||
!model.already_running,
|
||||
set_title: "Local Daemon",
|
||||
set_description: Some("Run Local Daemon"),
|
||||
|
|
@ -51,8 +49,7 @@ impl AsyncComponent for DaemonGroup {
|
|||
// Should be impossible to panic here
|
||||
let model = DaemonGroup {
|
||||
system_setup: init.system_setup,
|
||||
daemon_client: init.daemon_client.clone(),
|
||||
already_running: init.daemon_client.lock().await.is_some(),
|
||||
already_running: daemon_api::daemon_available().await,
|
||||
};
|
||||
|
||||
let widgets = view_output!();
|
||||
|
|
@ -104,7 +101,7 @@ mv $TEMP /tmp/burrow-detached-daemon"#,
|
|||
.unwrap();
|
||||
}
|
||||
DaemonGroupMsg::DaemonStateChange => {
|
||||
self.already_running = self.daemon_client.lock().await.is_some();
|
||||
self.already_running = daemon_api::daemon_available().await;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue