This is an automated email from the ASF dual-hosted git repository.
matthiasblaesing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 90bd1ca [NETBEANS-4783] Unselect added files from CDNJS by default
new e916a56 Merge pull request #2634 from
KacerCZ/netbeans-4783-cdnjs-files-unselected
90bd1ca is described below
commit 90bd1cad17f0f401ce9a3fbe478e7881a4d7e2e4
Author: Tomas Prochazka <[email protected]>
AuthorDate: Sun Jan 3 08:25:18 2021 +0100
[NETBEANS-4783] Unselect added files from CDNJS by default
https://issues.apache.org/jira/browse/NETBEANS-4783
When adding new files from CDNJS new files are not selected by default.
---
.../src/org/netbeans/modules/javascript/cdnjs/ui/FilesNode.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/webcommon/javascript.cdnjs/src/org/netbeans/modules/javascript/cdnjs/ui/FilesNode.java
b/webcommon/javascript.cdnjs/src/org/netbeans/modules/javascript/cdnjs/ui/FilesNode.java
index a089333..a2e9350 100644
---
a/webcommon/javascript.cdnjs/src/org/netbeans/modules/javascript/cdnjs/ui/FilesNode.java
+++
b/webcommon/javascript.cdnjs/src/org/netbeans/modules/javascript/cdnjs/ui/FilesNode.java
@@ -101,7 +101,7 @@ public class FilesNode extends AbstractNode {
@Override
protected Node[] createNodes(String key) {
- boolean install = (installedFiles == null) ||
installedFiles.contains(key);
+ boolean install = (installedFiles != null) &&
installedFiles.contains(key);
return new Node[] {new FileNode(key, install)};
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists