display-panel: Clear the variant builder if not showing an OSD
When we've only one monitor active we are not showing the OSD but we're leaking the variant used to request the shell to show the OSDs.
This commit is contained in:
parent
bdc0368bd0
commit
ca884dc666
1 changed files with 4 additions and 1 deletions
|
@ -382,7 +382,10 @@ monitor_labeler_show (CcDisplayPanel *self)
|
|||
g_variant_builder_close (&builder);
|
||||
|
||||
if (number < 2)
|
||||
{
|
||||
g_variant_builder_clear (&builder);
|
||||
return monitor_labeler_hide (self);
|
||||
}
|
||||
|
||||
g_dbus_proxy_call (self->shell_proxy,
|
||||
"ShowMonitorLabels",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue