diff --git a/crates/edit_prediction_button/src/edit_prediction_button.rs b/crates/edit_prediction_button/src/edit_prediction_button.rs index 8822c05f6c4d1842fd74d45d876f64736eb62fbc..b2186c6aae592b5a4f73f1caaeb9e6c267d82afc 100644 --- a/crates/edit_prediction_button/src/edit_prediction_button.rs +++ b/crates/edit_prediction_button/src/edit_prediction_button.rs @@ -132,7 +132,8 @@ impl Render for EditPredictionButton { div().child( PopoverMenu::new("copilot") .menu(move |window, cx| { - Some(match status { + let current_status = Copilot::global(cx)?.read(cx).status(); + Some(match current_status { Status::Authorized => this.update(cx, |this, cx| { this.build_copilot_context_menu(window, cx) }),