screenshot: Fix code typo
Even though commit b89d90eb8 talked about the GLib.BookmarkFile type, this didn't stop the code from sneaking a silly typo and refer to this GLib.BookmarksFile (i.e. extra 's'). Fix the code to refer to the right type name and constructor. Fixes: b89d90eb8 ("screenshot: Use GLib.BookmarkFile to save recent screenshots") Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2692>
This commit is contained in:
parent
ab0c795e81
commit
58af42caea
@ -2076,7 +2076,7 @@ function _storeScreenshot(bytes, pixbuf) {
|
|||||||
const recentFile =
|
const recentFile =
|
||||||
GLib.build_filenamev([GLib.get_user_data_dir(), 'recently-used.xbel']);
|
GLib.build_filenamev([GLib.get_user_data_dir(), 'recently-used.xbel']);
|
||||||
const uri = screenshotFile.get_uri();
|
const uri = screenshotFile.get_uri();
|
||||||
const bookmarks = new GLib.BookmarksFile();
|
const bookmarks = new GLib.BookmarkFile();
|
||||||
try {
|
try {
|
||||||
bookmarks.load_from_file(recentFile);
|
bookmarks.load_from_file(recentFile);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user