Skip to content

Commit 764f08e

Browse files
committed
Merge branch 'local-upstream/master' into add-crossfade-menu-options
2 parents 2ad097c + 4364d3b commit 764f08e

File tree

14 files changed

+633
-689
lines changed

14 files changed

+633
-689
lines changed

config/store.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ const migrations = {
1919
...pluginOptions,
2020
});
2121
}
22+
23+
if (store.get("options.ForceShowLikeButtons")) {
24+
store.delete("options.ForceShowLikeButtons");
25+
store.set("options.likeButtons", 'force');
26+
}
2227
},
2328
">=1.17.0": (store) => {
2429
setDefaultPluginOptions(store, "picture-in-picture");

index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ autoUpdater.autoDownload = false;
3434
const gotTheLock = app.requestSingleInstanceLock();
3535
if (!gotTheLock) app.exit();
3636

37-
app.commandLine.appendSwitch(
38-
"js-flags",
39-
// WebAssembly flags
40-
"--experimental-wasm-threads"
41-
);
4237
app.commandLine.appendSwitch("enable-features", "SharedArrayBuffer"); // Required for downloader
4338
app.allowRendererProcessReuse = true; // https://github.com/electron/electron/issues/18397
4439
if (config.get("options.disableHardwareAcceleration")) {

menu.js

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,33 @@ const mainMenuTemplate = (win) => {
9393
},
9494
},
9595
{
96-
label: "Force show like buttons",
97-
type: "checkbox",
98-
checked: config.get("options.ForceShowLikeButtons"),
99-
click: (item) => {
100-
config.set("options.ForceShowLikeButtons", item.checked);
101-
},
96+
label: "Like buttons",
97+
submenu: [
98+
{
99+
label: "Default",
100+
type: "radio",
101+
checked: !config.get("options.likeButtons"),
102+
click: () => {
103+
config.set("options.likeButtons", '');
104+
},
105+
},
106+
{
107+
label: "Force show",
108+
type: "radio",
109+
checked: config.get("options.likeButtons") === 'force',
110+
click: () => {
111+
config.set("options.likeButtons", 'force');
112+
}
113+
},
114+
{
115+
label: "Hide",
116+
type: "radio",
117+
checked: config.get("options.likeButtons") === 'hide',
118+
click: () => {
119+
config.set("options.likeButtons", 'hide');
120+
}
121+
},
122+
],
102123
},
103124
{
104125
label: "Theme",

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"npm": "Please use yarn instead"
107107
},
108108
"dependencies": {
109-
"@cliqz/adblocker-electron": "^1.25.2",
109+
"@cliqz/adblocker-electron": "^1.26.0",
110110
"@ffmpeg/core": "^0.11.0",
111111
"@ffmpeg/ffmpeg": "^0.11.6",
112112
"@foobar404/wave": "^2.0.4",
@@ -115,7 +115,6 @@
115115
"browser-id3-writer": "^4.4.0",
116116
"butterchurn": "^2.6.7",
117117
"butterchurn-presets": "^2.4.7",
118-
"chokidar": "^3.5.3",
119118
"custom-electron-prompt": "^1.5.7",
120119
"custom-electron-titlebar": "^4.1.6",
121120
"electron-better-web-request": "^1.0.1",
@@ -135,8 +134,7 @@
135134
"node-fetch": "^2.6.8",
136135
"simple-youtube-age-restriction-bypass": "https://gitpkg.now.sh/api/pkg.tgz?url=zerodytrash/Simple-YouTube-Age-Restriction-Bypass&commit=v2.5.4",
137136
"vudio": "^2.1.1",
138-
"youtubei.js": "^2.9.0",
139-
"ytdl-core": "^4.11.1",
137+
"youtubei.js": "^3.1.1",
140138
"ytpl": "^2.3.0"
141139
},
142140
"devDependencies": {

plugins/downloader/actions.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)