Skip to content

Commit f82042a

Browse files
Rmtokistd-microblock
authored andcommitted
fix: update current profile state when switching profiles
1 parent b0acb5c commit f82042a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/celemod-ui/src/context/blacklist.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const createBlacklistContext = () => {
2020
console.log('switch to profile', name);
2121
callRemote('apply_blacklist_profile', gamePath, name, JSON.stringify(alwaysOnMods));
2222
setCurrentProfileName(name);
23+
setCurrentProfile(profiles.find(p => p.name === name) || profiles[0]);
2324
},
2425
}
2526

0 commit comments

Comments
 (0)