Skip to content

Commit

Permalink
🐛 Correct improper types for settings modification
Browse files Browse the repository at this point in the history
  • Loading branch information
NovusTheory committed Oct 5, 2023
1 parent 5276d25 commit da7d20d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ app.on("ready", () => {
})

// Handle memory store ipc
ipcMain.on("memoryStore:set", (event, key: string, value?: string) => {
ipcMain.on("memoryStore:set", (event, key: string, value?: unknown) => {
if ((settingsWindow && event.sender !== settingsWindow.webContents) && event.sender !== mainWindow.webContents) return;

memoryStore.set(key, value);
Expand All @@ -1376,7 +1376,7 @@ app.on("ready", () => {
});

// Handle settings store ipc
ipcMain.on("settings:set", (event, key: string, value?: string) => {
ipcMain.on("settings:set", (event, key: string, value?: unknown) => {
if ((settingsWindow && event.sender !== settingsWindow.webContents)) return;

store.set(key, value);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ window.ytmd.handleUpdateDownloaded(() => {
<p>Zoom</p>
<div class="range-selector">
<span class="range-value">{{ zoom }}</span>
<input v-model="zoom" class="range" type="range" max="300" min="30" step="10" @change="settingsChanged" />
<input v-model.number="zoom" class="range" type="range" max="300" min="30" step="10" @change="settingsChanged" />
</div>
</div>
</div>
Expand Down

0 comments on commit da7d20d

Please sign in to comment.