mirror of
https://github.com/imsyy/SPlayer.git
synced 2025-11-25 03:14:57 +08:00
16 lines
355 B
TypeScript
16 lines
355 B
TypeScript
import { ipcMain } from "electron";
|
|
import { getThumbar } from "../thumbar";
|
|
|
|
const initThumbarIpc = (): void => {
|
|
// 更新工具栏
|
|
ipcMain.on("play-status-change", (_, playStatus: boolean) => {
|
|
const thumbar = getThumbar();
|
|
if (!thumbar) {
|
|
return;
|
|
}
|
|
thumbar.updateThumbar(playStatus);
|
|
});
|
|
};
|
|
|
|
export default initThumbarIpc;
|