Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store and restore active-project-path explicitly #1472

Merged
merged 28 commits into from
Feb 5, 2025
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
5ad6921
Add "active-project-path" setting.
Oct 9, 2024
4eb0372
Dont change active project just because a document changes
Oct 9, 2024
67f238c
Remove some unused code relating to active_project
Oct 9, 2024
c2f4940
Merge branch 'master' into jeremypw/sync-activeproject-startup
jeremypw Oct 13, 2024
c05ab29
Do not override active project with default on startup
Oct 13, 2024
5b4db0e
Show global search dialog if scope unspecified
Oct 13, 2024
ad9cc13
Distinguish global search path from default action target
Oct 14, 2024
916e10d
Allow global search when no active project
Oct 14, 2024
ca34ddd
Set active project after load folder is none already set
Oct 14, 2024
baf705e
FileView: Use git_manager property
Oct 14, 2024
5d350e7
Merge branch 'master' into jeremypw/sync-activeproject-startup
jeremypw Oct 30, 2024
43c1023
Allow no project to be restored. Only user sets active project.
Oct 30, 2024
0bca777
Merge branch 'master' into jeremypw/sync-activeproject-startup
jeremypw Nov 6, 2024
3794a65
Merge branch 'master' into jeremypw/sync-activeproject-startup
zeebok Dec 1, 2024
24da045
Merge branch 'master' into jeremypw/sync-activeproject-startup
jeremypw Dec 7, 2024
f01dfde
On close other folders make remaining active
Dec 7, 2024
48320f3
Set active project context menu item for git repos
Dec 7, 2024
2fa14e9
Merge branch 'master' into jeremypw/sync-activeproject-startup
jeremypw Jan 8, 2025
d8e21e4
Merge branch 'master' into jeremypw/sync-activeproject-startup
jeremypw Jan 11, 2025
b8efe29
Merge branch 'master' into jeremypw/sync-activeproject-startup
jeremypw Jan 12, 2025
f859d51
Merge branch 'master' into jeremypw/sync-activeproject-startup
jeremypw Jan 23, 2025
8285e1b
Do not signal project-chosen twice for each change
Jan 27, 2025
7f6edde
Do not call same code twice for each time a tab closes
Jan 27, 2025
4629cdc
ProjectChooser: signal only on manual change
Jan 29, 2025
750f2cf
Update popover only when activated;
Jan 29, 2025
c6d81f0
Merge branch 'master' into jeremypw/sync-activeproject-startup
zeebok Feb 4, 2025
1a54316
Remove debug code
Feb 4, 2025
04f487b
Merge branch 'master' into jeremypw/sync-activeproject-startup
Feb 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Set active project after load folder is none already set
Jeremy Wootten authored and Jeremy Wootten committed Oct 14, 2024
commit ca34ddd98c249ad4863ff8c7c8b49060223074d0
5 changes: 5 additions & 0 deletions src/FolderManager/FileView.vala
Original file line number Diff line number Diff line change
@@ -533,10 +533,15 @@ public class Scratch.FolderManager.FileView : Code.Widgets.SourceList, Code.Pane
rename_items_with_same_name (child_folder);
}
}

Scratch.Services.GitManager.get_instance ().remove_project (folder_root);
write_settings ();
});

if (Scratch.Services.GitManager.get_instance ().active_project_path == "" && folder_root.is_git_repo) {
Scratch.Services.GitManager.get_instance ().active_project_path = folder_root.path;
}

write_settings ();
}