screenshot: Export showScreen*UI() functions

showScreenshotUI() is needed by the system action, and
showScreenRecordingUI() is conceptually so similar that
it would be odd to export one and not the other.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6885

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2877>
This commit is contained in:
Florian Müllner 2023-08-09 16:24:07 +02:00 committed by Marge Bot
parent 90bd72206b
commit d6cfc13c3f

View File

@ -2269,7 +2269,7 @@ async function captureScreenshot(texture, geometry, scale, cursor) {
/**
* Shows the screenshot UI.
*/
function showScreenshotUI() {
export function showScreenshotUI() {
Main.screenshotUI.open().catch(err => {
logError(err, 'Error opening the screenshot UI');
});
@ -2278,7 +2278,7 @@ function showScreenshotUI() {
/**
* Shows the screen recording UI.
*/
function showScreenRecordingUI() {
export function showScreenRecordingUI() {
Main.screenshotUI.open(UIMode.SCREENCAST).catch(err => {
logError(err, 'Error opening the screenshot UI');
});