Skip to content

Commit

Permalink
somes code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Toinane committed Mar 8, 2019
1 parent c14b5a9 commit e6bdf2a
Show file tree
Hide file tree
Showing 5 changed files with 267 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"appId": "com.electron.container-ps",
"productName": "Container PS",
"compression": "maximum",
"compression": "normal",
"copyright": "Copyright @Toinane",
"asar": true,
"directories": {
Expand All @@ -26,7 +26,7 @@
},
"linux": {
"icon": "src/assets",
"synopsis": "Docker PS",
"synopsis": "Container PS",
"category": "Development"
},
"win": {
Expand Down
3 changes: 0 additions & 3 deletions src/Command.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
const { spawn } = require('child_process')

// const trayIcon = nativeImage.createFromPath(path.join(dirname, 'assets/loadingTemplate.png'));
// tray.setImage(trayIcon);

class Command {
static run(cmd, options = []) {
return new Promise((resolve, reject) => {
Expand Down
2 changes: 1 addition & 1 deletion src/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Container {
this.image = container[6] || 'no image found'
this.size = container[7] || 'no size found'
} else {
this.ports = 'no ports used'
this.ports = ''
this.image = container[5] || 'no image found'
this.size = container[6] || 'no size found'
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require('fix-path')()

app.on('will-finish-launching', () => {
app.disableHardwareAcceleration()
app.dock.hide()
if (process.platform === 'darwin') app.dock.hide()
})

app.on('ready', async () => {
Expand Down
Loading

0 comments on commit e6bdf2a

Please sign in to comment.