mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 11:01:45 +00:00
fix: fixed an issue if "Always on top" is enabled, the dialog is displayed below the window
- fix #1379
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { ipcMain, dialog } from 'electron';
|
||||
import { ipcMain, dialog, BrowserWindow } from 'electron';
|
||||
|
||||
export default () => {
|
||||
ipcMain.handle('qualityChanger', async (_, qualityLabels: string[], currentIndex: number) => await dialog.showMessageBox({
|
||||
export default (win: BrowserWindow) => {
|
||||
ipcMain.handle('qualityChanger', async (_, qualityLabels: string[], currentIndex: number) => await dialog.showMessageBox(win, {
|
||||
type: 'question',
|
||||
buttons: qualityLabels,
|
||||
defaultId: currentIndex,
|
||||
|
||||
Reference in New Issue
Block a user