From b740ea3cc015cc721bf09f20584b83fed31595eb Mon Sep 17 00:00:00 2001 From: Carlos Soriano Date: Mon, 2 Mar 2015 11:00:35 +0100 Subject: nautilus-window: don't show notification in desktop The notification when deleting files is shown also in the desktop, but there's the positioning is difficult and looks odd. Just don't show it there. --- src/nautilus-window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nautilus-window.c b/src/nautilus-window.c index da948f211..cd789df70 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -1562,7 +1562,8 @@ nautilus_window_on_undo_changed (NautilusFileUndoManager *manager, if (undo_info != NULL && state == NAUTILUS_FILE_UNDO_MANAGER_STATE_UNDO && - nautilus_file_undo_info_get_op_type (undo_info) == NAUTILUS_FILE_UNDO_OP_MOVE_TO_TRASH) { + nautilus_file_undo_info_get_op_type (undo_info) == NAUTILUS_FILE_UNDO_OP_MOVE_TO_TRASH && + !NAUTILUS_IS_DESKTOP_WINDOW (window)) { files = nautilus_file_undo_info_trash_get_files (NAUTILUS_FILE_UNDO_INFO_TRASH (undo_info)); /* Don't pop up a notification if user canceled the operation or the focus -- cgit v1.2.1