Continue fixing multiple UI issues found when testing wcDocker changes. #6479

This commit is contained in:
Aditya Toshniwal
2023-11-01 20:52:38 +05:30
parent d3dd5c0b56
commit 17acce3e7b
15 changed files with 91 additions and 74 deletions

View File

@@ -78,4 +78,13 @@ export function listenPreferenceBroadcast() {
// initial sync
preferenceChangeBroadcast.postMessage('sync');
return new Promise((resolve)=>{
const i = setInterval(()=>{
if(usePreferences.getState()?.version > 0) {
clearInterval(i);
resolve();
}
}, 100);
});
}