Правки в ядре для показа окна поверх всех окон при звонке

This commit is contained in:
RoyceDa
2026-03-18 18:28:37 +02:00
parent 41d7a89830
commit 824b1fec65
5 changed files with 58 additions and 9 deletions

View File

@@ -20,10 +20,19 @@ const useWindow = () => {
window.api.send('window-theme', theme);
}
const setWindowPriority = (isTop: boolean) => {
if(isTop){
window.api.invoke('window-top');
} else {
window.api.invoke('window-priority-normal');
}
}
return {
setSize,
setResizeble,
setTheme
setTheme,
setWindowPriority
}
}