Avoid duplicate busy-placeholder refresh

This commit is contained in:
Rod Boev
2026-06-28 19:24:44 -04:00
parent 9a1f27a48b
commit 552a13fa9e
3 changed files with 3 additions and 3 deletions
-1
View File
@@ -5990,7 +5990,6 @@ async function handleComposerPrimaryAction(){
function setBusy(v){
S.busy=v;
updateSendBtn();
if(typeof _applyBusyComposerPlaceholder==='function') _applyBusyComposerPlaceholder();
if(!v){
if(typeof _clearActivityElapsedTimer==='function') _clearActivityElapsedTimer();
setStatus('');
+1 -1
View File
@@ -5,7 +5,7 @@ preferences-panel autosave pattern is wired correctly:
- All 15 preference fields use _schedulePreferencesAutosave (not _markSettingsDirty)
- Password field MUST still call _markSettingsDirty (security: never autosave)
- _preferencesPayloadFromUi covers all 14 fields
- _preferencesPayloadFromUi covers all 15 fields
- _setPreferencesAutosaveStatus uses the shared i18n keys
- Status div exists in static/index.html
- _autosavePreferencesSettings clears the dirty flag and hides the unsaved bar
@@ -72,7 +72,8 @@ def test_busy_placeholder_helper_preserves_compression_and_drafts():
assert "_applyBusyComposerPlaceholder" in update_block
busy_block = _function_block(UI_JS, "setBusy")
assert "_applyBusyComposerPlaceholder" in busy_block
assert "updateSendBtn();" in busy_block
assert "_applyBusyComposerPlaceholder" not in busy_block
def test_locale_blocks_cover_new_keys():