mirror of
https://github.com/elementary/gala.git
synced 2024-12-25 02:02:11 +03:00
BackgroundManager: Send changed signal early (#1968)
This commit is contained in:
parent
e91d971055
commit
5c420862d1
@ -49,13 +49,13 @@ public class Gala.BackgroundManager : Meta.BackgroundGroup, Gala.BackgroundManag
|
||||
}
|
||||
}
|
||||
|
||||
private void swap_background_actor (bool animate) {
|
||||
return_if_fail (new_background_actor != null);
|
||||
|
||||
private void swap_background_actor (bool animate) requires (new_background_actor != null) {
|
||||
var old_background_actor = background_actor;
|
||||
background_actor = new_background_actor;
|
||||
new_background_actor = null;
|
||||
|
||||
changed ();
|
||||
|
||||
if (old_background_actor == null) {
|
||||
return;
|
||||
}
|
||||
@ -76,7 +76,6 @@ public class Gala.BackgroundManager : Meta.BackgroundGroup, Gala.BackgroundManag
|
||||
old_background_actor.destroy ();
|
||||
}
|
||||
|
||||
changed ();
|
||||
}
|
||||
|
||||
private void update_background_actor (bool animate = true) {
|
||||
|
Loading…
Reference in New Issue
Block a user