folderIcon: Properly reject drop

When a drop is rejected, we are mistakenly returning
true instead of false.

Return false when the rejecting the drop.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/671
This commit is contained in:
Georges Basile Stavracas Neto 2019-08-09 10:56:37 -03:00
parent f76f30fd6a
commit 4c89eac9a4
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385

View File

@ -1520,7 +1520,7 @@ var FolderIcon = class FolderIcon {
acceptDrop(source) { acceptDrop(source) {
if (!this._canAccept(source)) if (!this._canAccept(source))
return true; return false;
let app = source.app; let app = source.app;
let folderApps = this._folder.get_strv('apps'); let folderApps = this._folder.get_strv('apps');