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:
parent
90bd72206b
commit
d6cfc13c3f
@ -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');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user