Skip to content

Commit

Permalink
turn off auto update interval
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdadams committed Mar 11, 2024
1 parent cc010ec commit 0da30c5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const Store = require('electron-store');

module.exports = new Store({
defaults: {
automaticUpdates: false,
propresenterIP: '127.0.0.1',
propresenterPort: '49610',
propresenterPassword: '',
Expand Down
13 changes: 11 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ var trayMenuItems = [
openMonitor();
}
},
{
type: 'separator'
},
{
label: 'Check for Updates',
click: function () {
checkForUpdates();
},
},
{
label: 'Quit',
click: function () {
Expand Down Expand Up @@ -285,13 +294,13 @@ function checkForUpdates() {
tray = new Tray(path.join(__dirname,'Bridge-icon.png'));
buildTray();

if (!is.development) {
/*if (!is.development) {
const FOUR_HOURS = 1000 * 60 * 60 * 4;
setInterval(() => {
checkForUpdates();
}, FOUR_HOURS);
checkForUpdates();
}
}*/

if (config.get('switch_mdns')) {
findHosts();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "presentationbridge-client",
"productName": "PresentationBridge Client",
"version": "1.0.19",
"version": "1.1.0",
"description": "Links data from your Presentation / lyrics software to other software.",
"license": "MIT",
"repository": "josephdadams/presentationbridge-client",
Expand Down

0 comments on commit 0da30c5

Please sign in to comment.