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:
@@ -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(', ')}`
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user