Skip to content

Commit

Permalink
Resurrect old install from file view
Browse files Browse the repository at this point in the history
  • Loading branch information
lucksus committed Dec 19, 2019
1 parent 87afdab commit 6c8ca62
Show file tree
Hide file tree
Showing 2 changed files with 717 additions and 0 deletions.
30 changes: 30 additions & 0 deletions holoscape.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Holoscape {
uiConfigWindow;
debuggerWindow;
installBundleView;
installFromFileWindow;

activeView;

Expand Down Expand Up @@ -356,6 +357,33 @@ class Holoscape {
this.installBundleView = view
}

createInstallFromFileView() {
let window = new BrowserWindow({
width:1200,
height:800,
webPreferences: {
nodeIntegration: true
},
show: true,
icon: systemTrayIconFull(),
})
window.webContents.loadURL(path.join('file://', __dirname, 'views/legacy_install_bundle_view.html'))

let holoscape = this
window.on('close', (event) => {
holoscape.installFromFileWindow = undefined
})

this.installFromFileWindow = window
}

showInstallFromFileWindow() {
if(!this.installFromFileWindow) {
this.createInstallFromFileView()
}
this.installFromFileWindow.show()
}

showInstallBundleView() {
this.showView(this.installBundleView)
}
Expand Down Expand Up @@ -395,6 +423,8 @@ class Holoscape {
{ label: 'Settings-'+conductor.persona(), type: 'submenu', submenu: settingsMenu },
{ label: 'Conductor Run-Time', type: 'submenu', submenu: conductorMenu },
{ type: 'separator' },
{ label: 'Install hApp from file...', click:()=>this.showInstallFromFileWindow() },
{ type: 'separator' },
{ label: 'Quit', click: ()=> this.quit() }
])
mb.tray.setToolTip('HoloScape')
Expand Down
Loading

0 comments on commit 6c8ca62

Please sign in to comment.