electron-lets-move
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "electron-lets-move", | ||
"main": "src/index.js", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "tommoor/electron-lets-move", |
@@ -0,1 +1,3 @@ | ||
[![npm version](https://badge.fury.io/js/electron-lets-move.svg)](https://badge.fury.io/js/electron-lets-move) | ||
# Electron LetsMove | ||
@@ -14,6 +16,12 @@ | ||
## Installation | ||
`npm install --save electron-lets-move` | ||
## Usage | ||
You should call the `moveToApplications` method as soon as possible after the app | ||
ready event in the main process. | ||
ready event in the main process. Ideally before the user has any chance to interact | ||
with the application. | ||
@@ -20,0 +28,0 @@ ```javascript |
@@ -70,3 +70,3 @@ const { app, dialog } = require('electron'); | ||
type: 'question', | ||
buttons: ['Do Not Move', 'Move to Applications'], | ||
buttons: ['Move to Applications', 'Do Not Move'], | ||
message: 'Move to Applications folder?', | ||
@@ -77,3 +77,3 @@ detail, | ||
// user chose to do nothing | ||
if (chosen === 0) return; | ||
if (chosen !== 0) return; | ||
@@ -80,0 +80,0 @@ const moved = (error) => { |
4668
42