fix
This commit is contained in:
@@ -177,7 +177,12 @@ fn setup_bridge(
|
||||
action_tx: mpsc::Sender<ModifiedAction>,
|
||||
event_rx: broadcast::Receiver<MenuEvent>,
|
||||
) {
|
||||
let _ = action_tx.blocking_send(ModifiedAction::new(Action::Resize {
|
||||
// try_send rather than blocking_send: this is the first
|
||||
// message on a fresh channel so it always has capacity,
|
||||
// and try_send works regardless of whether we're inside
|
||||
// a tokio runtime context (macOS calls this from the
|
||||
// main thread outside block_on).
|
||||
let _ = action_tx.try_send(ModifiedAction::new(Action::Resize {
|
||||
height: VIEWPORT_HEIGHT,
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user