Skip to content

Commit

Permalink
Version Update Notification now working again (#219)
Browse files Browse the repository at this point in the history
* now working again

* Change Heading font to Arvo
  • Loading branch information
UnchartedBull committed Oct 16, 2019
1 parent 235b2a8 commit 0400294
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ function createWindow() {
}

setTimeout(sendVersionInfo, 42 * 1000);
activateSleepListener();
activateScreenSleepListener();
window.on('closed', () => {
window = null;
});
}

function activateSleepListener() {
function activateScreenSleepListener() {
ipcMain.on("screenSleep", () => {
exec('xset dpms force standby')
})
Expand All @@ -77,7 +77,7 @@ function activateSleepListener() {

function sendVersionInfo() {
window.webContents.send("versionInformation", {
version: process.env.npm_package_version
version: app.getVersion()
})
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export class AppService {
this.http.get('https://api.github.com/repos/UnchartedBull/OctoDash/releases/latest').subscribe(
(data: GitHubRealeaseInformation) => {
if (this.version !== data.name.replace('v', '')) {
// this.notificationService.setUpdate('It\'s time for an update',
// `Version ${data.name} is available now, while you're on v${this.version}. Consider updating :)`);
this.notificationService.setUpdate('It\'s time for an update',
`Version ${data.name} is available now, while you're on v${this.version}. Consider updating :)`);
}
},
() => null
Expand Down
2 changes: 1 addition & 1 deletion src/app/main-menu/main-menu.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="main-menu">
<span class="main-menu__heading">OctoDash</span>
<span class="main-menu__heading">OctoDash.</span>
<img src="assets/settings.svg" class="main-menu__settings-icon" routerLink="/settings">
<table class="main-menu__options">
<tr>
Expand Down
1 change: 1 addition & 0 deletions src/app/main-menu/main-menu.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
font-size: 5vw;
font-weight: 500;
margin-top: 4vh;
font-family: 'Arvo';
}

&__settings-icon {
Expand Down
3 changes: 2 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="assets/reset.css">
<link href="https://fonts.googleapis.com/css?family=Cousine|Montserrat:400,500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Arvo:700|Cousine|Montserrat:400,500&display=swap"
rel="stylesheet">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>

Expand Down

0 comments on commit 0400294

Please sign in to comment.