mirror of
https://github.com/vector-im/element-web.git
synced 2025-11-26 04:51:09 +01:00
Option to disable hardware acceleration on Element Desktop (#22295)
Override ElectronPlatform to support disableHardwareAcceleration
This commit is contained in:
parent
6c7f663983
commit
11a3011cbd
@ -414,6 +414,18 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||||||
return this.ipcCall('setMinimizeToTrayEnabled', enabled);
|
return this.ipcCall('setMinimizeToTrayEnabled', enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public supportsTogglingHardwareAcceleration(): boolean {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async getHardwareAccelerationEnabled(): Promise<boolean> {
|
||||||
|
return this.ipcCall('getHardwareAccelerationEnabled');
|
||||||
|
}
|
||||||
|
|
||||||
|
public async setHardwareAccelerationEnabled(enabled: boolean): Promise<void> {
|
||||||
|
return this.ipcCall('setHardwareAccelerationEnabled', enabled);
|
||||||
|
}
|
||||||
|
|
||||||
async canSelfUpdate(): Promise<boolean> {
|
async canSelfUpdate(): Promise<boolean> {
|
||||||
const feedUrl = await this.ipcCall('getUpdateFeedUrl');
|
const feedUrl = await this.ipcCall('getUpdateFeedUrl');
|
||||||
return Boolean(feedUrl);
|
return Boolean(feedUrl);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user