Skip to content

Commit 0cecf68

Browse files
blurymind4ian
authored andcommitted
Autoclose project manager when opening an editor (#826)
1 parent f39af51 commit 0cecf68

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

newIDE/app/src/MainFrame/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ export default class MainFrame extends React.Component<Props, State> {
728728
this.setState({ editorTabs: tabsWithSceneAndEventsEditors }, () =>
729729
this.updateToolbar()
730730
);
731+
this.openProjectManager(false);
731732
};
732733

733734
openExternalEvents = (name: string) => {
@@ -759,6 +760,7 @@ export default class MainFrame extends React.Component<Props, State> {
759760
},
760761
() => this.updateToolbar()
761762
);
763+
this.openProjectManager(false);
762764
};
763765

764766
openExternalLayout = (name: string) => {
@@ -792,6 +794,7 @@ export default class MainFrame extends React.Component<Props, State> {
792794
},
793795
() => this.updateToolbar()
794796
);
797+
this.openProjectManager(false);
795798
};
796799

797800
openEventsFunctionsExtension = (name: string) => {
@@ -1191,7 +1194,10 @@ export default class MainFrame extends React.Component<Props, State> {
11911194
onCloseProject={this.askToCloseProject}
11921195
onExportProject={this.openExportDialog}
11931196
onOpenPreferences={() => this.openPreferences(true)}
1194-
onOpenResources={() => this.openResources()}
1197+
onOpenResources={() => {
1198+
this.openResources();
1199+
this.openProjectManager(false);
1200+
}}
11951201
onOpenPlatformSpecificAssets={() =>
11961202
this.openPlatformSpecificAssets()
11971203
}

0 commit comments

Comments
 (0)