Merge branch 'app-favorites' into 'main'

appFavorites: Better align messages with the HIG

See merge request GNOME/gnome-shell!3255
This commit is contained in:
Jamie Gravendeel 2024-06-30 08:05:47 +00:00
commit 253f066913

View file

@ -163,7 +163,7 @@ class AppFavorites extends Signals.EventEmitter {
let app = Shell.AppSystem.get_default().lookup_app(appId); let app = Shell.AppSystem.get_default().lookup_app(appId);
let msg = _('%s has been pinned to the dash.').format(app.get_name()); let msg = _('%s Pinned to Dash').format(app.get_name());
Main.overview.setMessage(msg, { Main.overview.setMessage(msg, {
forFeedback: true, forFeedback: true,
undoCallback: () => this._removeFavorite(appId), undoCallback: () => this._removeFavorite(appId),
@ -196,7 +196,7 @@ class AppFavorites extends Signals.EventEmitter {
if (!this._removeFavorite(appId)) if (!this._removeFavorite(appId))
return; return;
let msg = _('%s has been unpinned from the dash.').format(app.get_name()); let msg = _('%s Unpinned From Dash').format(app.get_name());
Main.overview.setMessage(msg, { Main.overview.setMessage(msg, {
forFeedback: true, forFeedback: true,
undoCallback: () => this._addFavorite(appId, pos), undoCallback: () => this._addFavorite(appId, pos),