Commit 8849cbdd authored by Tasso Evangelista's avatar Tasso Evangelista

Increase about dialog size due to i18n

parent cace9e66
......@@ -114,8 +114,8 @@ ipcMain.on('show-about-dialog', () => {
const win = new BrowserWindow({
title: i18n.__('About', app.getName()),
parent: mainWindow,
width: 310,
height: 240,
width: 400,
height: 300,
resizable: false,
maximizable: false,
minimizable: false,
......@@ -123,7 +123,7 @@ ipcMain.on('show-about-dialog', () => {
show: false,
});
win.setMenuBarVisibility(false);
win.loadURL(`file://${ __dirname }/public/about.html`);
win.once('ready-to-show', () => win.show());
win.loadURL(`file://${ __dirname }/public/about.html`);
});
});
......@@ -2,14 +2,15 @@
<html>
<head>
<meta charset="utf-8" />
<title>About %s</title>
<link rel="stylesheet" href="../stylesheets/main.css" />
<script>
document.addEventListener('DOMContentLoaded', () => {
const { remote, ipcRenderer } = require('electron');
const i18n = require('../i18n/index');
const { copyright } = require('../../package.json');
document.title = i18n.__('About', remote.app.getName());
document.querySelector('.app-version').innerHTML = `${i18n.__('Version')} <span class="version">${remote.app.getVersion()}</span>`;
document.querySelector('.check-for-updates').innerHTML = i18n.__('Check_for_Updates');
document.querySelector('.check-for-updates-on-start + span').innerHTML = i18n.__('Check_for_Updates_on_Start');
......
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