From 0feba38827d5f4f217648fe41e04593b0ea552f9 Mon Sep 17 00:00:00 2001 From: jlaferri Date: Sat, 9 Mar 2019 18:55:10 -0500 Subject: [PATCH] fix issue with mac and change text mac would not close the app properly which could cause problems --- app/components/Home.js | 52 +++++++++++++++++++++--------------------- app/main.dev.js | 10 +++++--- package.json | 2 +- 3 files changed, 34 insertions(+), 30 deletions(-) diff --git a/app/components/Home.js b/app/components/Home.js index 2fd225522..f002b15a5 100644 --- a/app/components/Home.js +++ b/app/components/Home.js @@ -60,37 +60,15 @@ export default class Home extends Component { ); } - renderPatreonNotif() { - const contentMsg = ( -
- Your support allows me to spend more time on the project and pay for - services to make it even better. Enjoy the beta features!  - - Click here - -  to view Patreon page. -
- ); - - return ( - - ); - } - // renderPatreonNotif() { // const contentMsg = ( //
- // If you are enjoying using Project Slippi, consider becoming a patron to - // support continued development and unlock early-access features.  + // Your support allows me to spend more time on the project and pay for + // services to make it even better. Enjoy the beta features!  // // Click here // - //  to support! + //  to view Patreon page. //
// ); @@ -98,12 +76,34 @@ export default class Home extends Component { // // ); // } + renderPatreonNotif() { + const contentMsg = ( +
+ If you are enjoying using Project Slippi, consider becoming a patron to + support continued development and unlock early-access features.  + + Click here + +  to support! +
+ ); + + return ( + + ); + } + render() { const navigationElements = []; diff --git a/app/main.dev.js b/app/main.dev.js index 67eaae1a7..d87b78d9b 100644 --- a/app/main.dev.js +++ b/app/main.dev.js @@ -140,9 +140,13 @@ app.on('open-url', (event, url) => { app.on('window-all-closed', () => { // Respect the OSX convention of having the application in memory even // after all windows have been closed - if (process.platform !== 'darwin') { - app.quit(); - } + // if (process.platform !== 'darwin') { + // app.quit(); + // } + + // The above code didn't really work well. I couldn't re-open the app, + // and I couldn't launch replays from URI. Fuck the conventions + app.quit(); }); // Only allow a single Slippi Launcher instance diff --git a/package.json b/package.json index 837167069..0b19112e1 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "slippi-launcher", "productName": "Slippi Launcher", - "version": "1.3.0", + "version": "1.3.1", "description": "Slippi Launcher program for browsing and playing replays.", "scripts": { "build": "concurrently \"yarn build-main\" \"yarn build-renderer\"",