From d6cfc13c3f5c59a1f29a6dbcc393d8094558c171 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 9 Aug 2023 16:24:07 +0200 Subject: [PATCH] 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: --- js/ui/screenshot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index 48a355d2c..852ec94e7 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -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'); });