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

Commit

Permalink
Add warning message prior to application launch (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-matvei committed Mar 16, 2019
1 parent 9ee1aad commit 970ff78
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "freeman",
"productName": "FreeMAN",
"version": "0.9.0",
"version": "0.9.1",
"description": "A free, extensible, cross-platform file manager for power users",
"main": "app/main.js",
"build": {
Expand Down
10 changes: 10 additions & 0 deletions src/main/index.ts
Expand Up @@ -33,6 +33,16 @@ app.on("window-all-closed", () => {
});

app.on("ready", () => {
dialog.showMessageBox({
buttons: ["I accept"],
detail: "FreeMAN is currently in active development and intended for development purposes only. " +
"It's possible for a user to delete files / folders, bypassing the operating system's Recycle Bin " +
"equivalent, for example. It is currently not advised to use the program with important files / folders.",
message: "This program is currently Pre-Release and should be used carefully",
title: "Pre-release warning",
type: "warning"
});

const mainWindowState = windowStateKeeper({
defaultHeight: 800,
defaultWidth: 1400
Expand Down

0 comments on commit 970ff78

Please sign in to comment.