git_ui: Fix resetting of onboarding banner (#30051)
This PR fixes an issue where the Git onboarding banner wasn't able to be reset. Release Notes: - N/A
This commit is contained in:
parent
ffc07a2651
commit
0db8668404
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ use git::{
|
|||
status::{FileStatus, StatusCode, UnmergedStatus, UnmergedStatusCode},
|
||||
};
|
||||
use git_panel_settings::GitPanelSettings;
|
||||
use gpui::{App, FocusHandle, actions};
|
||||
use gpui::{Action, App, FocusHandle, actions};
|
||||
use onboarding::GitOnboardingModal;
|
||||
use project_diff::ProjectDiff;
|
||||
use ui::prelude::*;
|
||||
|
@ -115,7 +115,7 @@ pub fn init(cx: &mut App) {
|
|||
},
|
||||
);
|
||||
workspace.register_action(move |_, _: &ResetOnboarding, window, cx| {
|
||||
cx.dispatch_action(&workspace::RestoreBanner);
|
||||
window.dispatch_action(workspace::RestoreBanner.boxed_clone(), cx);
|
||||
window.refresh();
|
||||
});
|
||||
workspace.register_action(|workspace, _action: &git::Init, window, cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue