-
-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finally added the submenu for changing the splash animation #589
Conversation
new file: package-lock.json modified: src/main/index.ts modified: src/main/ipc.ts modified: src/main/splash.ts modified: src/preload/VesktopNative.ts
modified: src/shared/IpcEvents.ts Also testing if commit is verified or not.
modified: src/shared/settings.d.ts modified: static/views/splash.html
modified: src/renderer/components/settings/VencordLocationPicker.tsx
please do not change unrelated files |
<Forms.FormText> | ||
The animation on the splash window is loaded from{" "} | ||
{settings.splashAnimationPath ? ( | ||
<a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use Clickable
(or Anchor
if you want it to still look like a link) instead of an anchor tag.
@@ -74,6 +74,10 @@ function init() { | |||
|
|||
registerScreenShareHandler(); | |||
registerMediaPermissionsHandler(); | |||
//register file handler so we can load the custom splash animation from the user's filesystem | |||
protocol.handle("splash-animation", () => { | |||
return net.fetch("file:///"+splashAnimationPath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use fs.readSync
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it doesn't make sense to have a "network request" to grab a local file when you can just read it directly
Cynosphere's suggestions
The changes from this PR got added to #355 so this can be closed now. |
Added a sub-menu for custom splash animation.