mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-22 07:02:41 +08:00
fix: icon not change when toggle window maxinized (#799)
This commit is contained in:
1 parent
ca8e3179bb
commit
3ad216751a
1 file changed
+4
-2
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user