Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
whoops x2
Browse files Browse the repository at this point in the history
  • Loading branch information
soops committed Jul 19, 2016
1 parent c51a2d2 commit b40449e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -54,3 +54,5 @@ options.json

Nimble-darwin-x64
dist

dev.json
8 changes: 7 additions & 1 deletion index.js
Expand Up @@ -41,6 +41,7 @@ var menubar = require('menubar');
var fs = require('fs');
var AutoLaunch = require('auto-launch');
var os = require('os')
const isDev = require('electron-is-dev');

try {
global.options = require(os.homedir() + '/.nimble-options.json');
Expand Down Expand Up @@ -253,6 +254,11 @@ mb.on('after-create-window', function() {
} else {
global.autohide = false
}
})

output.stderr.on("data", function(data) {
console.log("no autohide setting was found, setting to default")
global.autohide = false

mb.window.setBounds({
x: mb.window.getPosition()[0],
Expand Down Expand Up @@ -303,7 +309,7 @@ mb.on('ready', function() {
global.screenSize = screen.getPrimaryDisplay().size;

// auto update
if (global.options.autoupdate === true) {
if (global.options.autoupdate === true && isDev === false) {
var updateFeed = 'https://nimble-autoupdate.herokuapp.com/update/osx/';
autoUpdater.setFeedURL(updateFeed + pjson.version);
autoUpdater.checkForUpdates();
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -7,6 +7,7 @@
"auto-launch": "^1.1.1",
"bugsnag": "^1.7.0",
"bugsnag-js": "^2.5.0",
"electron-is-dev": "^0.1.1",
"font-awesome": "^4.5.0",
"imagesloaded": "^4.1.0",
"jquery": "^2.1.4",
Expand Down

0 comments on commit b40449e

Please sign in to comment.