fix: crash on start fixed

This commit is contained in:
2026-04-05 12:20:04 +02:00
parent 31fcd344ff
commit e0c0c8a31e
6 changed files with 15 additions and 15 deletions

View File

@@ -0,0 +1,6 @@
[
"article",
"aside",
"page",
"picture"
]

View File

@@ -0,0 +1,6 @@
{
"name": "P",
"maxPostsPerPage": 50,
"semanticSimilarityEnabled": false,
"blogLanguages": []
}

View File

@@ -140,12 +140,6 @@ pub struct BdsApp {
// Toasts
toasts: Vec<Toast>,
// macOS lifecycle receiver and retained delegate
#[cfg(target_os = "macos")]
_lifecycle_rx: std::sync::mpsc::Receiver<crate::platform::macos::LifecycleEvent>,
#[cfg(target_os = "macos")]
_lifecycle_delegate: Option<objc2::rc::Retained<crate::platform::macos::BdsAppDelegate>>,
}
// ───────────────────────────────────────────────────────────
@@ -223,11 +217,6 @@ impl BdsApp {
registry.set_enabled(MenuAction::Replace, false);
registry.set_enabled(MenuAction::OpenInBrowser, false);
#[cfg(target_os = "macos")]
let (_lifecycle_tx, _lifecycle_rx) = crate::platform::macos::lifecycle_channel();
#[cfg(target_os = "macos")]
let _lifecycle_delegate = crate::platform::macos::install_delegate(_lifecycle_tx);
(
Self {
db,
@@ -256,10 +245,6 @@ impl BdsApp {
project_dropdown_open: false,
theme_badge: String::from("pico"),
toasts: Vec::new(),
#[cfg(target_os = "macos")]
_lifecycle_rx,
#[cfg(target_os = "macos")]
_lifecycle_delegate,
},
init_task,
)