mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:53:44 +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 [isMaximized, setIsMaximized] = useState(false);
|
||||||
const [isPined, setIsPined] = useState(false);
|
const [isPined, setIsPined] = useState(false);
|
||||||
appWindow.isMaximized().then((isMaximized) => {
|
appWindow.onResized(() => {
|
||||||
setIsMaximized(() => isMaximized);
|
appWindow.isMaximized().then((isMaximized) => {
|
||||||
|
setIsMaximized(() => isMaximized);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user