修复: 打开设置窗口不再触发桌面刷新
- enableBing() 调用加 initDone 守卫,初始化阶段跳过
This commit is contained in:
@@ -523,7 +523,7 @@ function setWpType(type) {
|
|||||||
document.querySelectorAll('.wp-type-section').forEach(function(s) { s.classList.remove('visible'); });
|
document.querySelectorAll('.wp-type-section').forEach(function(s) { s.classList.remove('visible'); });
|
||||||
var sec = document.getElementById('sec-' + type);
|
var sec = document.getElementById('sec-' + type);
|
||||||
if (sec) sec.classList.add('visible');
|
if (sec) sec.classList.add('visible');
|
||||||
if (type === 'bing' && currentWpType !== 'bing') {
|
if (initDone && type === 'bing' && currentWpType !== 'bing') {
|
||||||
if (window.enableBing) window.enableBing();
|
if (window.enableBing) window.enableBing();
|
||||||
}
|
}
|
||||||
currentWpType = type;
|
currentWpType = type;
|
||||||
|
|||||||
Reference in New Issue
Block a user