gnome-shell/js
Florian Müllner d54e17d3d5 screenshot: Split out disabling cast button
Screencasts can be disabled for various reasons:

 1. the service is not available (missing plugin etc.)
 2. screencasts are not allowed by the session mode
    (lock screen etc.)
 3. the UI is invoked in screenshot-only mode (portal)

Currently each of those conditions is handled in a different
code path, which means that later conditions can re-enable
the button.

There's also an inconsistency whether disabling the button
is done via visibility or reactivity, which still allows
toggling the hidden button via shortcuts (although a hidden
button means that screencasts aren't supported at all, so
nothing will be recorded in that case).

Address this by updating the button from a dedicated function.

Fixes: 671df28a50 ("screenshot: Only handle mode-switch shortcut when
supported")

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7358
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3155>
2024-02-01 12:17:43 +00:00
..
dbusServices dbusServices: Always import dbus errors 2024-01-31 20:58:31 +01:00
extensions extensions: Fix ngettext convenience 2023-09-15 21:41:30 +00:00
gdm js: Explicitly set expand of St.Bin children 2023-12-15 14:45:37 +00:00
misc extensionDownloader: Use registered D-Bus error 2024-01-31 20:58:31 +01:00
portalHelper js: Port Config to ESM 2023-08-10 17:42:23 +00:00
ui screenshot: Split out disabling cast button 2024-02-01 12:17:43 +00:00
js-resources.gresource.xml dbusErrors: Add utility module for handling remote errors 2024-01-31 20:58:31 +01:00
meson.build extensions-app: Move Extensions app to new subproject 2020-03-27 23:33:30 +00:00
portal-resources.gresource.xml js/portal-resources: Add missing fileUtils to js path 2022-11-03 18:02:27 +00:00