Skip to content

Commit

Permalink
Search text & Fix select servers
Browse files Browse the repository at this point in the history
  • Loading branch information
zhandouxiaojiji committed Mar 15, 2021
1 parent 1194e5e commit dbc3b20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions main-process/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export default class Settings {
}
set serverName(name: string) {
this.model.serverName = name;
this.save();
}

set(config: SettingsModel) {
Expand All @@ -106,6 +107,7 @@ export default class Settings {
recentWorkspaces: ["sample/workspace.json"],
recentFiles: [],
nodeClassify: sampleNodeClassify,
treesDesc: {},
};
this.save();
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "behavior3editor",
"version": "0.1.8",
"version": "0.1.9",
"description": "行为树编辑器",
"main": "./dist/main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion render-process/Explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class FileDataNode {
for (let i = this.children.length - 1; i >= 0; i--) {
const child = this.children[i];
if (!child.isFolder) {
const keyStr = child.id;
const keyStr = child.text;
child.visible = keyStr.includes(keyWord);
} else {
child.visible = child.setVisible(keyWord);
Expand Down

0 comments on commit dbc3b20

Please sign in to comment.