mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
HackStudio: Fix GitWidget issues with switching between projects
GitWidget no longer crashes upon trying to create a repository for a new project, and it correctly updates after opening a different project. A new method, change_repo, has been added to make this work, which changes m_repo_root and resets most of the widget's state in order to make this work.
This commit is contained in:
committed by
Andreas Kling
parent
d9c295de46
commit
d454c63bde
Notes:
sideshowbarker
2024-07-18 05:23:48 +09:00
Author: https://github.com/donaghylennon Commit: https://github.com/SerenityOS/serenity/commit/d454c63bde8 Pull-request: https://github.com/SerenityOS/serenity/pull/9185 Reviewed-by: https://github.com/itamar8910 ✅
@@ -202,6 +202,10 @@ void HackStudioWidget::open_project(const String& root_path)
|
||||
m_project_tree_view->set_model(m_project->model());
|
||||
m_project_tree_view->update();
|
||||
}
|
||||
if (m_git_widget) {
|
||||
m_git_widget->change_repo(LexicalPath(root_path));
|
||||
m_git_widget->refresh();
|
||||
}
|
||||
if (Debugger::is_initialized()) {
|
||||
auto& debugger = Debugger::the();
|
||||
debugger.reset_breakpoints();
|
||||
|
||||
Reference in New Issue
Block a user