Skip to content

Commit

Permalink
VolumeScroll: Reset settings if invalid entered + update README
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ckoates committed Oct 19, 2024
1 parent 75b6a5a commit 04a7d80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ https://inrixia.github.io/neptune-plugins/VolumeScroll
```
</b>

Lets you scroll on the volume icon to change the volume by 10%.
Lets you scroll on the volume icon to change the volume by 10%. Can configure the step size, including different amounts for when you hold <kbd>SHIFT</kbd>.

![image](https://github.com/user-attachments/assets/3a795666-2ed3-4feb-8d42-9374d4f6edd3)

Expand Down
4 changes: 2 additions & 2 deletions plugins/VolumeScroll/src/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const Settings = () => html`<${TextInput}
text=${settings.changeBy}
onText=${(text: string) => {
const num = parseInt(text);
if (isNaN(num)) return;
if (isNaN(num)) return (settings.changeBy = 10);
settings.changeBy = num;
}}
title="Percent to change volume by"
Expand All @@ -20,7 +20,7 @@ export const Settings = () => html`<${TextInput}
text=${settings.changeByShift}
onText=${(text: string) => {
const num = parseInt(text);
if (isNaN(num)) return;
if (isNaN(num)) return (settings.changeByShift = 10);
settings.changeByShift = num;
}}
title="Percent to change volume by when shift is held"
Expand Down

0 comments on commit 04a7d80

Please sign in to comment.