color-device: Let the device check if it should skip updating
Not everything will require the device to be "ready" (i.e. have a ICC profile assigned). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3904>
This commit is contained in:
parent
8eeec32c90
commit
6452c21b85
2 changed files with 3 additions and 3 deletions
|
@ -1234,6 +1234,9 @@ meta_color_device_update (MetaColorDevice *color_device)
|
|||
size_t lut_size;
|
||||
unsigned int temperature;
|
||||
|
||||
if (!meta_color_device_is_ready (color_device))
|
||||
return;
|
||||
|
||||
color_profile = meta_color_device_get_assigned_profile (color_device);
|
||||
if (!color_profile)
|
||||
return;
|
||||
|
|
|
@ -252,9 +252,6 @@ update_device_properties (MetaColorManager *color_manager)
|
|||
if (!color_device)
|
||||
continue;
|
||||
|
||||
if (!meta_color_device_is_ready (color_device))
|
||||
continue;
|
||||
|
||||
meta_color_device_update (color_device);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue