mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-09-11 12:25:42 +03:00
Listen to Sessions events too
Re-added the <Session> watcher, so we can see file add/remove/modify events, not just commits and branch changes. We actually need to watch both.
This commit is contained in:
parent
c6b23dc250
commit
501983f9bb
@ -36,5 +36,12 @@ export default async (params: { projectId: string }) => {
|
||||
store.set(statuses);
|
||||
});
|
||||
|
||||
appWindow.listen<Session>(`project://${params.projectId}/sessions`, async (event) => {
|
||||
log.info(`Status: Received sessions event, projectId: ${params.projectId}`);
|
||||
const statusesGit = await listFiles(params);
|
||||
const statuses = convertToStatuses(statusesGit);
|
||||
store.set(statuses);
|
||||
});
|
||||
|
||||
return store as Readable<Status[]>;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user