From af19de71686d66d608ba67423092f0f4ff442170 Mon Sep 17 00:00:00 2001 From: PiEgg Date: Sat, 30 Mar 2019 12:20:00 +0800 Subject: [PATCH] Changed: MIT LICENSE -> 996ICU LICENSE --- LICENSE | 15 ++++++++++----- src/main/utils/picgoCoreIPC.js | 3 ++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/LICENSE b/LICENSE index 472ac23..bd17bc1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,8 +1,13 @@ -MIT License -Copyright (c) + The 996ICU License (996ICU) + Version 0.1, March 2019 -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: +PACKAGE is distributed under LICENSE with the following restriction: -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. +The above license is only granted to entities that act in concordance +with local labor laws. In addition, the following requirements must be +observed: -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* The licencee must not, explicitly or implicitly, request or schedule + their employees to work more than 45 hours in any single week. +* The licencee must not, explicitly or implicitly, request or schedule + their employees to be at work consecutively for 10 hours. \ No newline at end of file diff --git a/src/main/utils/picgoCoreIPC.js b/src/main/utils/picgoCoreIPC.js index c5c1aaf..80281b3 100644 --- a/src/main/utils/picgoCoreIPC.js +++ b/src/main/utils/picgoCoreIPC.js @@ -157,7 +157,8 @@ const handlePluginActions = (ipcMain, CONFIG_PATH) => { const handleRemoveFiles = (ipcMain, CONFIG_PATH) => { ipcMain.on('removeFiles', (event, files) => { const picgo = new PicGo(CONFIG_PATH) - picgo.emit('remove', files) + const guiApi = new GuiApi(ipcMain, event.sender, picgo) + picgo.emit('remove', files, guiApi) }) }