Small fix

This commit is contained in:
Core 2022-09-30 01:14:29 +01:00
parent 83fb556aa2
commit 3a276b2a8d
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0
2 changed files with 3 additions and 3 deletions

View file

@ -77,7 +77,7 @@ export class AppEvents {
break; break;
case "webgpu": case "webgpu":
console.info("WebGPU is enabled."); console.info("[AppEvents] WebGPU is enabled.");
app.commandLine.appendSwitch("enable-unsafe-webgpu"); app.commandLine.appendSwitch("enable-unsafe-webgpu");
if (process.platform === "linux") { if (process.platform === "linux") {
app.commandLine.appendSwitch("enable-features", "Vulkan"); app.commandLine.appendSwitch("enable-features", "Vulkan");
@ -85,7 +85,7 @@ export class AppEvents {
break; break;
case "disabled": case "disabled":
console.info("Hardware acceleration is disabled."); console.info("[AppEvents] Hardware acceleration is disabled.");
app.commandLine.appendSwitch("disable-gpu"); app.commandLine.appendSwitch("disable-gpu");
app.disableHardwareAcceleration(); app.disableHardwareAcceleration();
break; break;

View file

@ -1022,7 +1022,7 @@
</div> </div>
<div class="md-option-segment md-option-segment_auto"> <div class="md-option-segment md-option-segment_auto">
<label> <label>
<select class="md-select" v-model="app.cfg.connectivity.discord_rpc.activity.buttons.first" @change="if ($event.target.value == 'disabled') app.cfg.connectivity.discord_rpc.activity.buttons.second = 'disabled';"> <select class="md-select" v-model="app.cfg.connectivity.discord_rpc.activity.buttons.first" @change="$event.target.value == 'disabled' ? app.cfg.connectivity.discord_rpc.activity.buttons.second = 'disabled' : ''">
<option v-for="option in app.cfg.connectivity.discord_rpc.activity.buttons.options" v-bind:value="option" v-show="app.cfg.connectivity.discord_rpc.activity.buttons.second != option">{{ $root.getLz(`settings.option.connectivity.discordRPC.buttons.${option}`) }}</option> <option v-for="option in app.cfg.connectivity.discord_rpc.activity.buttons.options" v-bind:value="option" v-show="app.cfg.connectivity.discord_rpc.activity.buttons.second != option">{{ $root.getLz(`settings.option.connectivity.discordRPC.buttons.${option}`) }}</option>
<option value="disabled">{{$root.getLz('term.disabled')}}</option> <option value="disabled">{{$root.getLz('term.disabled')}}</option>
</select> </select>