fix: restore sidepanel bootstrap after merge

This commit is contained in:
sh2001sh
2026-04-21 19:15:11 +08:00
parent 451cedf104
commit 83a4f7ff01
+12 -11
View File
@@ -4839,15 +4839,16 @@ initializeReleaseInfo().catch((err) => {
}); });
loadHeroSmsCountries().catch((err) => { loadHeroSmsCountries().catch((err) => {
console.error('Failed to load HeroSMS countries:', err); console.error('Failed to load HeroSMS countries:', err);
}).finally(() => restoreState().then(() => { }).finally(() => {
syncPasswordToggleLabel(); return restoreState().then(() => {
syncVpsUrlToggleLabel(); syncPasswordToggleLabel();
syncVpsPasswordToggleLabel(); syncVpsUrlToggleLabel();
updatePanelModeUI(); syncVpsPasswordToggleLabel();
updateButtonStates(); updatePanelModeUI();
updateStatusDisplay(latestState); updateButtonStates();
return refreshContributionContentHint(); updateStatusDisplay(latestState);
}).catch((err) => { return refreshContributionContentHint();
console.error('Failed to initialize sidepanel state:', err); }).catch((err) => {
console.error('Failed to initialize sidepanel state:', err);
});
}); });
}));