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) => {
console.error('Failed to load HeroSMS countries:', err);
}).finally(() => restoreState().then(() => {
syncPasswordToggleLabel();
syncVpsUrlToggleLabel();
syncVpsPasswordToggleLabel();
updatePanelModeUI();
updateButtonStates();
updateStatusDisplay(latestState);
return refreshContributionContentHint();
}).catch((err) => {
console.error('Failed to initialize sidepanel state:', err);
}).finally(() => {
return restoreState().then(() => {
syncPasswordToggleLabel();
syncVpsUrlToggleLabel();
syncVpsPasswordToggleLabel();
updatePanelModeUI();
updateButtonStates();
updateStatusDisplay(latestState);
return refreshContributionContentHint();
}).catch((err) => {
console.error('Failed to initialize sidepanel state:', err);
});
});
}));