feat(display): Add revert display config on disconnect option (#3613)

This commit is contained in:
VMFortress 2025-01-30 16:02:22 -05:00 committed by GitHub
commit 5b36357133
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 46 additions and 0 deletions

View file

@ -175,6 +175,7 @@
"dd_manual_refresh_rate": "",
"dd_hdr_option": "auto",
"dd_config_revert_delay": 3000,
"dd_config_revert_on_disconnect": "disabled",
"dd_mode_remapping": {"mixed": [], "resolution_only": [], "refresh_rate_only": []},
"dd_wa_hdr_toggle": "disabled",
"min_fps_factor": 1,

View file

@ -151,6 +151,15 @@ function addRemappingEntry() {
</div>
</div>
<!-- Config revert on disconnect -->
<div class="mb-3" v-if="config.dd_configuration_option !== 'disabled'">
<Checkbox id="dd_config_revert_on_disconnect"
locale-prefix="config"
v-model="config.dd_config_revert_on_disconnect"
default="false"
></Checkbox>
</div>
<!-- Display mode remapping -->
<div class="mb-3" v-if="canBeRemapped()">
<label for="dd_mode_remapping" class="form-label">

View file

@ -158,6 +158,8 @@
"dd_config_label": "Device configuration",
"dd_config_revert_delay": "Config revert delay",
"dd_config_revert_delay_desc": "Additional delay in milliseconds to wait before reverting configuration when the app has been closed or the last session terminated. Main purpose is to provide a smoother transition when quickly switching between apps.",
"dd_config_revert_on_disconnect": "Config revert on disconnect",
"dd_config_revert_on_disconnect_desc": "Revert configuration upon disconnect of all clients instead of app close or last session termination.",
"dd_config_verify_only": "Verify that the display is enabled (default)",
"dd_hdr_option": "HDR",
"dd_hdr_option_auto": "Switch on/off the HDR mode as requested by the client (default)",