Merge branch 'main' into gnome-44-max

This commit is contained in:
wheaney 2024-08-17 10:55:59 -07:00
commit 7217461291
2 changed files with 11 additions and 1 deletions

View File

@ -130,7 +130,8 @@ class BreezyDesktopExtension {
try {
Globals.logger.log_debug('BreezyDesktopExtension _find_supported_monitor');
const target_monitor = this._monitor_manager.getMonitorPropertiesList()?.find(
monitor => SUPPORTED_MONITOR_PRODUCTS.includes(monitor.product));
monitor => SUPPORTED_MONITOR_PRODUCTS.includes(monitor.product) ||
this.settings.get_string('custom-monitor-product') === monitor.product);
if (target_monitor !== undefined) {
Globals.logger.log(`Identified supported monitor: ${target_monitor.product} on ${target_monitor.connector}`);
return {

View File

@ -162,6 +162,15 @@
<description>
Log debug messages
</description>
</key>
<key name="custom-monitor-product" type="s">
<default>
""
</default>
<summary>Custom monitor product</summary>
<description>
Custom monitor product
</description>
</key>
</schema>
</schemalist>