mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-06 03:03:44 +08:00
chore: update
This commit is contained in:
parent
fb2d138cbf
commit
978acfa471
@ -66,7 +66,7 @@ const ProfilePage = () => {
|
|||||||
coordinateGetter: sortableKeyboardCoordinates,
|
coordinateGetter: sortableKeyboardCoordinates,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
const { stateCurrent } = location.state || {};
|
const { current } = location.state || {};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const unlisten = addListener("tauri://file-drop", async (event) => {
|
const unlisten = addListener("tauri://file-drop", async (event) => {
|
||||||
@ -184,11 +184,12 @@ const ProfilePage = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
(async () => {
|
(async () => {
|
||||||
if (stateCurrent && stateCurrent !== profiles.current) {
|
if (current) {
|
||||||
await activateProfile(stateCurrent, false);
|
mutateProfiles();
|
||||||
|
await activateProfile(current, false);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
}, stateCurrent);
|
}, current);
|
||||||
|
|
||||||
const onEnhance = useLockFn(async (notifySuccess: boolean) => {
|
const onEnhance = useLockFn(async (notifySuccess: boolean) => {
|
||||||
setActivatings(currentActivatings());
|
setActivatings(currentActivatings());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user