Skip to content

Commit ec96dc6

Browse files
committed
Fixing some minor issues
1 parent b6e74c2 commit ec96dc6

File tree

7 files changed

+32
-20
lines changed

7 files changed

+32
-20
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
[![Travis Build Status](https://travis-ci.org/rafajaques/php-assistant.svg?branch=master)](https://travis-ci.org/rafajaques/php-assistant)
66
[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/r4wsabo0ury7a5kg?svg=true)](https://ci.appveyor.com/project/rafajaques/php-assistant)
7+
[![Latest release](https://img.shields.io/github/tag/rafajaques/php-assistant.svg)](https://github.com/rafajaques/php-assistant/releases)
78
[![Dependency Status](https://david-dm.org/rafajaques/php-assistant.svg?path=app)](https://david-dm.org/rafajaques/php-assistant?path=app)
89
[![devDependency Status](https://david-dm.org/rafajaques/php-assistant/dev-status.svg)](https://david-dm.org/rafajaques/php-assistant#info=devDependencies)
910
[![license:mit](https://img.shields.io/badge/license-mit-blue.svg)](https://opensource.org/licenses/MIT)
@@ -20,11 +21,11 @@ The main goal is to have a simple app to test small pieces of code without havin
2021

2122
You will find the most recent releases at Bintray repositories. Remember that PHP Assistant is still in development, so you may find bugs during its utilization. In case of problem, open an [issue](https://github.com/rafajaques/php-assistant/issues).
2223

23-
Mac OSX [![OSX Download](https://api.bintray.com/packages/rafajaques/mac-osx/php-assistant/images/download.svg) ](https://bintray.com/rafajaques/mac-osx/php-assistant/_latestVersion#files)
24-
25-
Debian/Ubuntu/Mint [![DEB Download](https://api.bintray.com/packages/rafajaques/deb/php-assistant/images/download.svg) ](https://bintray.com/rafajaques/deb/php-assistant/_latestVersion#files)
26-
27-
Windows [![Windows Download](https://api.bintray.com/packages/rafajaques/windows/php-assistant/images/download.svg) ](https://bintray.com/rafajaques/windows/php-assistant/_latestVersion#files)
24+
[![Mac OSX Download](https://img.shields.io/badge/download-Mac%20OSX-blue.svg)](link)
25+
[![Debian/Ubuntu/Mint 32](https://img.shields.io/badge/download-Debian%2FUbuntu%2FMint%20(32)-blue.svg)](link)
26+
[![Debian/Ubuntu/Mint 64](https://img.shields.io/badge/download-Debian%2FUbuntu%2FMint%20(64)-blue.svg)](link)
27+
[![Windows 32 Download](https://img.shields.io/badge/download-Windows%20(32)-blue.svg)](link)
28+
[![Windows 64 Download](https://img.shields.io/badge/download-Windows%20(64)-blue.svg)](link)
2829

2930
## Building
3031

app/locales/da.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"Requires restart": "Kræver genstart",
3333
"Presentation mode": "Præsentations mode",
3434
"Auto run code": "Auto kør kode",
35-
"Actions": "Actions",
3635
"Toggle mode": "Skift mode",
3736
"Edit": "Rediger",
3837
"Undo": "Fortryd",
@@ -90,5 +89,6 @@
9089
"Update available": "Update available",
9190
"Check for updates automatically": "Check for updates automatically",
9291
"Check for updates now": "Check for updates now",
93-
"Default font size": "Default font size"
94-
}
92+
"Default font size": "Default font size",
93+
"File": "File"
94+
}

app/locales/de.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"Tray only": "Nur Taskleiste",
3131
"Regular + Tray": "Normal + Taskleiste",
3232
"Requires restart": "Neustart erforderlich",
33-
"Actions": "Aktionen",
3433
"Toggle mode": "Modus umschalten",
3534
"Edit": "Bearbeiten",
3635
"Undo": "Rückgänig",
@@ -90,5 +89,6 @@
9089
"Update available": "Update available",
9190
"Check for updates automatically": "Check for updates automatically",
9291
"Check for updates now": "Check for updates now",
93-
"Default font size": "Default font size"
94-
}
92+
"Default font size": "Default font size",
93+
"File": "File"
94+
}

app/locales/en.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"Bring All to Front": "Bring All to Front",
5252
"Toggle mode": "Toggle mode",
5353
"Preferences": "Preferences",
54-
"Actions": "Actions",
5554
"PHP binary found!": "PHP binary found!",
5655
"Starting app...": "Starting app...",
5756
"PHP Assistant: First run check...": "PHP Assistant: First run check...",
@@ -90,5 +89,6 @@
9089
"Update available": "Update available",
9190
"Check for updates automatically": "Check for updates automatically",
9291
"Check for updates now": "Check for updates now",
93-
"Default font size": "Default font size"
94-
}
92+
"Default font size": "Default font size",
93+
"File": "File"
94+
}

app/locales/fr.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"Bring All to Front": "Bring All to Front",
5252
"Toggle mode": "Toggle mode",
5353
"Preferences": "Preferences",
54-
"Actions": "Actions",
5554
"PHP binary found!": "PHP binary found!",
5655
"Starting app...": "Starting app...",
5756
"PHP Assistant: First run check...": "PHP Assistant: First run check...",
@@ -90,5 +89,6 @@
9089
"Update available": "Update available",
9190
"Check for updates automatically": "Check for updates automatically",
9291
"Check for updates now": "Check for updates now",
93-
"Default font size": "Default font size"
94-
}
92+
"Default font size": "Default font size",
93+
"File": "File"
94+
}

app/locales/pt-BR.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"Bring All to Front": "Trazer todas para frente",
5252
"Toggle mode": "Alternar modo",
5353
"Preferences": "Preferências",
54-
"Actions": "Ações",
5554
"PHP binary found!": "Binário do PHP encontrado!",
5655
"Starting app...": "Iniciando a aplicação...",
5756
"PHP Assistant: First run check...": "PHP Assistant: Checagem da primeira execução...",
@@ -90,5 +89,6 @@
9089
"Update available": "Atualização disponível",
9190
"Check for updates automatically": "Procurar atualizações automaticamente",
9291
"Check for updates now": "Procurar atualizações agora",
93-
"Default font size": "Tamanho de fonte padrão"
92+
"Default font size": "Tamanho de fonte padrão",
93+
"File": "Arquivo"
9494
}

app/main.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ app.on('ready', () => {
7979
}
8080
});
8181

82+
/* In case of all windows are closed */
83+
app.on('window-all-closed', () => {
84+
app.quit();
85+
});
86+
8287
function startApp() {
8388
// Loading main HTML
8489
mainWindow.loadURL('file://' + Path.join(__dirname, 'index.html'));
@@ -254,7 +259,7 @@ function getExternalDisplayBounds() {
254259
function createMenu() {
255260
const template = [
256261
{
257-
label: i18n.__('Actions'),
262+
label: i18n.__('File'),
258263
submenu: [
259264
{
260265
label: i18n.__('Run code'),
@@ -369,6 +374,12 @@ function createMenu() {
369374
accelerator: 'CmdOrCtrl+M',
370375
role: 'minimize'
371376
},
377+
{
378+
label: i18n.__('Hide'),
379+
accelerator: 'CmdOrCtrl+H',
380+
role: 'hide',
381+
click: () => mainWindow.hide()
382+
},
372383
]
373384
},
374385
{

0 commit comments

Comments
 (0)