Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit signals that compositor layouts has changed #6179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pyanaconda/modules/localization/localed.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ def set_layouts(self, layouts_variants, options=None, convert=False):
self._set_layouts(layouts_variants, options, convert)
log.debug("Storing layouts for compositor configured by user")
self._user_layouts_variants = layouts_variants
self.compositor_layouts_changed.emit(self._user_layouts_variants)

def _set_layouts(self, layouts_variants, options=None, convert=False):
"""Set a new layouts for compositor.
Expand Down Expand Up @@ -391,6 +392,7 @@ def select_layout(self, layout_variant):
try:
new_layouts = self._shift_list(layouts, layout_variant)
self._set_layouts(new_layouts)
self.compositor_selected_layout_changed.emit(new_layouts)
return True
except ValueError:
log.warning("Can't set layout: '%s' as first to the current set: %s",
Expand Down