feat: add repo commands to the si cli
This commit is contained in:
@@ -127,9 +127,11 @@ impl AppRoot {
|
||||
pub fn mount(window: &mut Window, cx: &mut App) -> Entity<Root> {
|
||||
let root = cx.new(|cx| Root::new(window, cx));
|
||||
let content = cx.new(|cx| AppRoot::new(window, cx));
|
||||
|
||||
root.update(cx, |root, cx| {
|
||||
root.set_content(content, cx);
|
||||
});
|
||||
|
||||
root
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ impl Render for ExitDialog {
|
||||
.label("Exit")
|
||||
.variant(ButtonVariant::Destructive)
|
||||
.on_click(move |_, _, cx| {
|
||||
backend.update(cx, |backend, cx| backend.sign_out(cx)).detach();
|
||||
backend.update(cx, |backend, cx| backend.sign_out(cx));
|
||||
confirm_close.close(cx);
|
||||
})
|
||||
.into_any_element(),
|
||||
|
||||
Reference in New Issue
Block a user