From 1f3440c65985be3cc7f14f450dd6033f31547500 Mon Sep 17 00:00:00 2001 From: Mike Ammerlaan Date: Mon, 16 Sep 2024 10:48:18 -0700 Subject: [PATCH] fix(projects): Remove inop deploy option (#40) --- app/src/UX/ProjectEditor.tsx | 66 +----------------------------------- 1 file changed, 1 insertion(+), 65 deletions(-) diff --git a/app/src/UX/ProjectEditor.tsx b/app/src/UX/ProjectEditor.tsx index 5efa0fb7..2eec4fd3 100644 --- a/app/src/UX/ProjectEditor.tsx +++ b/app/src/UX/ProjectEditor.tsx @@ -188,7 +188,6 @@ export default class ProjectEditor extends Component { - this.setState({ - activeProjectItem: this.state.activeProjectItem, - tentativeProjectItem: this.state.tentativeProjectItem, - activeReference: this.state.activeReference, - menuState: this.state.menuState, - mode: this.state.mode, - viewMode: this.state.viewMode, - allInfoSet: this.props.project.infoSet, - allInfoSetGenerated: this.props.project.infoSet.completedGeneration, - displayFileView: this.state.displayFileView, - forceRawView: this.state.forceRawView, - filteredItems: this.state.filteredItems, - searchFilter: this.state.searchFilter, - effectMode: this.state.effectMode, - dragStyle: this.state.dragStyle, - visualSeed: this.state.visualSeed, - dialog: ProjectEditorDialog.webLocalDeploy, - dialogData: this.state.dialogData, - dialogActiveItem: this.state.dialogActiveItem, - statusAreaMode: this.state.statusAreaMode, - lastDeployKey: (data.icon as any).key, - lastExportKey: this.state.lastExportKey, - lastDeployFunction: this._handleWebLocalDeployClick, - lastExportFunction: this.state.lastExportFunction, - lastDeployData: data, - lastExportData: this.state.lastExportData, - }); - }, 2); - } - private async _handleChangeWorldSettingsClick(e: SyntheticEvent | undefined, data: MenuItemProps | undefined) { if (this.props.project == null || !data || !data.icon) { return; @@ -3010,7 +2958,7 @@ export default class ProjectEditor extends Component, content: "Add-On File", onClick: this._handleExportMCAddonClick, - title: "Exports this set of project files as a MCA, for use in Minecraft", + title: "Exports this set of project files as a MCAddon, for use in Minecraft", }; exportMenu.push(exportKeys[nextExportKey]); @@ -3091,18 +3039,6 @@ export default class ProjectEditor extends Component, - content: "Deploy to local Minecraft folder", - onClick: this._handleWebLocalDeployClick, - title: "Deploys this to a remote Dev Tools server", - }; - deployMenu.push(deployKeys[deployWebLocalKey]); - } - for (let i = 0; i < this.props.project.items.length; i++) { const pi = this.props.project.items[i];