Skip to content
Permalink
Browse files

check for updates button

  • Loading branch information...
Manuel-777 committed Feb 4, 2019
1 parent d53812b commit f76ec8734452b442de2f49a43e33b9362d6b225a
Showing with 9 additions and 0 deletions.
  1. +4 −0 main.js
  2. +5 −0 window_main/renderer.js
@@ -226,6 +226,10 @@ if (!singleLock) {
overlay.setPosition(0, 0);
break;

case 'updates_check':
autoUpdater.checkForUpdatesAndNotify();
break;

case 'export_txt':
dialog.showSaveDialog({
filters: [{
@@ -2180,6 +2180,8 @@ function open_settings(openSection) {
}
if (updateState.state == -1) {
about.append('<div class="message_updates green">Client is up to date.</div>');
button = $('<div class="button_simple centered update_link_about">Check for updates</div>');
button.appendTo(about);
}
if (updateState.state == -2) {
about.append('<div class="message_updates red">Error updating.</div>');
@@ -2252,6 +2254,9 @@ function open_settings(openSection) {
remote.app.exit(0);
});

$(".update_link_about").click(function() {
ipc_send('updates_check', true);
});

$(".settings_nav").click(function () {
if (!$(this).hasClass("nav_selected")) {

0 comments on commit f76ec87

Please sign in to comment.
You can’t perform that action at this time.