MainProcess add global val settings

This commit is contained in:
zhandouxiaojiji committed 2020-10-15 16:59:03 +08:00
1 parent d0690f0398
commit 23f4795562
5 files changed
+37 -22

No files matched your search

+6 -1
View File
@@ -2,6 +2,9 @@ import React, { Component } from "react";
import { Menu, Input } from "antd";
import * as fs from 'fs';
import { BehaviorTreeModel } from "../../common/BehaviorTreeModel";
import { remote } from 'electron';
import { MainProcess } from "../../main-process/MainProcess";
import Settings from "../../main-process/Settings";
const { Search } = Input;
@@ -21,7 +24,9 @@ export default class Properties extends Component<PropertiesProps> {
};
componentDidMount() {
const settings: Settings = remote.getGlobal("settings");
const lastWorkspace = settings.recentWorkspaces[0];
console.log("&&&&&& last workspace", lastWorkspace);
}
render() {