Skip to content

Commit

Permalink
Check git status on every file tree update
Browse files Browse the repository at this point in the history
  • Loading branch information
eveningkid committed Apr 22, 2018
1 parent cfef4c0 commit ca18b56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/editor/events/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { default as componentPreview } from './component-preview';
import { default as formatCurrentFile } from './format-current-file';
import { default as toggleUIElements } from './toggle-ui-elements';
import { default as quickFileSwitch } from './quick-file-switch';
import { EventsManager, FileTreeManager } from '../managers';
import { EventsManager, FileTreeManager, GitManager } from '../managers';

const events = {
newFile,
Expand Down Expand Up @@ -40,6 +40,7 @@ EventsManager.on('new-file', events.newFile)
.on('toggle-ui-brick-selector', events.toggleUIBrickSelector)
.on('update-file-tree', (event, fileTree) => {
FileTreeManager.updateFileTree(fileTree);
GitManager.status();
});

for (const number of [1, 2, 3, 4, 5, 6, 7, 8, 9]) {
Expand Down

0 comments on commit ca18b56

Please sign in to comment.