refactor: update preference handling and remove unused settings

- Commented out the App_SetDisableHardwareAcceleration IPC channel and related code for hardware acceleration settings.
- Updated preferences to utilize the new WindowStyle type for window style settings.
- Refactored components to use the usePreference hook instead of useSettings for better preference management.
- Cleaned up unused code and comments related to hardware acceleration and window style for improved maintainability.
This commit is contained in:
fullex
2025-09-02 11:45:33 +08:00
parent 7b2570974e
commit 2ce4fabc7d
23 changed files with 107 additions and 82 deletions
+4 -2
View File
@@ -356,7 +356,7 @@ export class PreferenceService {
const windowKeys = this.subscriptions.get(windowId)!
keys.forEach((key) => windowKeys.add(key))
logger.debug(`Window ${windowId} subscribed to ${keys.length} preference keys`)
logger.verbose(`Window ${windowId} subscribed to ${keys.length} preference keys: ${keys.join(', ')}`)
}
/**
@@ -364,7 +364,9 @@ export class PreferenceService {
*/
public unsubscribeForWindow(windowId: number): void {
this.subscriptions.delete(windowId)
logger.debug(`Window ${windowId} unsubscribed from preference changes`)
logger.verbose(
`Window ${windowId} unsubscribed from preference changes: ${Array.from(this.subscriptions.keys()).join(', ')}`
)
}
/**