MCPcopy
hub / github.com/ZToolsCenter/ZTools / applyMaterialToUpdateWindow

Method applyMaterialToUpdateWindow

src/main/api/updater.ts:480–488  ·  view source on GitHub ↗

* 应用窗口材质到 Update 窗口

(win: BrowserWindow)

Source from the content-addressed store, hash-verified

478 * 应用窗口材质到 Update 窗口
479 */
480 private applyMaterialToUpdateWindow(win: BrowserWindow): void {
481 try {
482 const settings = databaseAPI.dbGet('settings-general')
483 const material = settings?.windowMaterial || getDefaultWindowMaterial()
484 applyWindowMaterial(win, material)
485 } catch (error) {
486 console.error('[Updater] 应用窗口材质失败:', error)
487 }
488 }
489
490 /**
491 * 创建更新窗口

Callers 1

createUpdateWindowMethod · 0.95

Calls 3

getDefaultWindowMaterialFunction · 0.85
applyWindowMaterialFunction · 0.85
dbGetMethod · 0.45

Tested by

no test coverage detected