mbien commented on code in PR #9772:
URL: https://github.com/apache/netbeans/pull/9772#discussion_r4501085382


##########
platform/openide.explorer/src/org/netbeans/modules/openide/explorer/ExplorerActionsImpl.java:
##########
@@ -869,9 +853,11 @@ private void schedule() {
             cutActionPerformer.toEnabled(false);
             deleteActionPerformerConfirm.toEnabled(false);
             deleteActionPerformerNoConfirm.toEnabled(false);
-            pasteActionPerformer.toEnabled(false);
+            // paste types are unknown until the update runs, so drop the
+            // stale ones as well; setPasteTypes(null) also force-disables
+            pasteActionPerformer.setPasteTypes(null);
             EventQueue.invokeLater(this);
-            timer.schedule(0);
+            timer.schedule(100);

Review Comment:
   the task is now also debounced. The wait above got compensated for this 
modification.
   
   edit: I tested this manually by setting the delay to 5s: toolbars etc still 
worked correctly. I can setup a dev build with that config if someone else 
wants to test it that way too.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
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

Reply via email to