mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 07:03:45 +08:00
fix: icon not change when toggle window maxinized (#799)
This commit is contained in:
parent
ca8e3179bb
commit
3ad216751a
@ -15,8 +15,10 @@ export const LayoutControl = () => {
|
||||
|
||||
const [isMaximized, setIsMaximized] = useState(false);
|
||||
const [isPined, setIsPined] = useState(false);
|
||||
appWindow.isMaximized().then((isMaximized) => {
|
||||
setIsMaximized(() => isMaximized);
|
||||
appWindow.onResized(() => {
|
||||
appWindow.isMaximized().then((isMaximized) => {
|
||||
setIsMaximized(() => isMaximized);
|
||||
});
|
||||
});
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user