[gnome-shell/gbsneto/icon-grid-part3: 5/5] folderIcon: Properly reject drop
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/icon-grid-part3: 5/5] folderIcon: Properly reject drop
- Date: Fri, 9 Aug 2019 13:59:33 +0000 (UTC)
commit 4c89eac9a48d31fe3070f09ace7a9b9551dcc7a2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Aug 9 10:56:37 2019 -0300
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
js/ui/appDisplay.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 8882336ffd..9a81887480 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -1520,7 +1520,7 @@ var FolderIcon = class FolderIcon {
acceptDrop(source) {
if (!this._canAccept(source))
- return true;
+ return false;
let app = source.app;
let folderApps = this._folder.get_strv('apps');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]