Commit 09e7a347 authored by 神楽坂玲奈's avatar 神楽坂玲奈

浏览本地文件到下级

parent a833af7d
...@@ -347,19 +347,9 @@ export class AppsService { ...@@ -347,19 +347,9 @@ export class AppsService {
remote.getCurrentWindow().minimize(); remote.getCurrentWindow().minimize();
} }
// TODO: 定位到下级文件,即现在的目录之内
// 如果有actions.main.execuate, 定位那个execuate的顶层路径
// 如果没有,定位目录里面任意一个顶级文件
browse(app: App) { browse(app: App) {
if (app.local) { if (app.local) {
let appPath = app.local.path; remote.shell.showItemInFolder(app.local.path + "/.");
fs.readdir(appPath, (err, files) => {
if (!err) {
remote.shell.showItemInFolder(appPath + "/.");
} else {
console.log("Browser Window Error:", appPath, err);
}
});
} }
} }
...@@ -387,7 +377,7 @@ export class AppsService { ...@@ -387,7 +377,7 @@ export class AppsService {
if (connection) { if (connection) {
connection.connection.close(); connection.connection.close();
} }
console.log(server.url); // console.log(server.url);
connection = {connection: new WebSocket(server.url), address: null}; connection = {connection: new WebSocket(server.url), address: null};
let id: Timer | null; let id: Timer | null;
this.connections.set(app, connection); this.connections.set(app, connection);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment