LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Darren

Eliminate "Are You Sure?" Dialog When Removing Structures

Status: Declined
Moved to CAR database. CAR#354572

I can't count the number of times I've seen this dialog :

 

remove.png

 

Of course I want to continue, that's why I right-clicked the structure and chose Remove [Structure]!  This dialog must be a holdover from pre-Undo days.  Do we pop-up a dialog when you select your whole diagram and press <Delete>?  What about when you press Ctrl-B?  These actions have the potential to remove just as much diagram content as Remove [Structure].

 

Please get rid of this dialog, and just let us Undo the operation if we need to, just like we do all the other potentially destructive diagram edit operations.

27 Comments
SteveChandler
Trusted Enthusiast

The number of kudos just decremented by one.

 

I kudoed this idea but I am having second thoughts. The dialog is a reminder that there are cases which have code in them. You don't get it if all other cases are empty or if there are no other cases.

 

Just selecting the structure and pressing delete does not give the dialog and is the way I typically delete them. But sometimes when refactoring code, instead of looking at all the cases to see if there are any with code left in them, I right click and select remove. This way I get a quick confirmation that there is still code somewhere in the structure.

 

But mostly I don't care WHAT is in the structure when I go to delete it. In that case I just select it and nuke it with delete - plus it is quicker than right click/remove.

 

So just in case there is a day when I want to "delete structure but first verify other cases are empty" I would like LabVIEW to do the verification for me. If it didn't I would post an idea on the exchange Smiley Very Happy

=====================
LabVIEW 2012


dthor
Active Participant

I too am opposed to this idea. I like having a reminder that there is code present in other cases.

 

If there was no dialog, then I doubt I would think to undo the delete, check all the other cases for any code I may want to keep (even if it's commented out), and then redo the delete.

RavensFan
Knight of NI

I think you have to analyze this in a risk vs. reward scenario.  If you eliminate the confirmation, the risk is you might eliminate code you didn't know about.  The reward is you save one mouse click and one or two seconds.

 

How frequently does anyone actually go around eliminating structures to make a 1-click time savings worth it?

SteveChandler
Trusted Enthusiast

I think that this risk is only part of it. Removing the confirmation dialog means removing a feature. There is no other way to check if all cases are empty other than right-click remove empty cases and then click the selector to see if anything is left.

 

I usually don't need this feature but there are times it has come in handy. I hope the little guy stays.

 

Edit: I almost forgot to say what I was thinking when I clicked reply. The dialog does not even ask "Are you sure?"

=====================
LabVIEW 2012


David S.
NI Employee (retired)

No way. That dialog has saved me from an errant context menu selection countless times, and it's not hard to click again to confirm when your hand is already on the mouse. Keep it!

David Staab, CLA
Staff Systems Engineer
National Instruments
Darren
Proven Zealot

Man, this idea cannot come to fruition any sooner.  That dialog continues to slow me down on an almost daily basis!  With Undo After Save now in LabVIEW, I really see no "risks" associated with removing this dialog.  More kudos, please!

Darin.K
Trusted Enthusiast

You should really look into Quick Drop keyboard shortcuts, they are good for smoothing over these little quirks until they are fixed.  Smiley Tongue

Darin.K
Trusted Enthusiast

I made a very simple yet effective modification to the Remove and Rewire.vi QDKS.  Instead of always calling the Delete method I use To More Specific Class to make a quick check of the object reference.  If it is a 'Structure' I call the Remove Structure method, otherwise I use the Delete method as before.  Now Ctrl-Space Ctrl-R removes the structure without the dialog.

Darren
Proven Zealot

That's not a bad idea, although I have on occasion used Ctrl-Space-Ctrl-R to remove a structure and re-connect its input/output wires.  You know, the [Shift] modifier of that shortcut isn't currently being used...what do you think about Ctrl-Space-Ctrl-Shift-R doing a "Remove Structure" operation if one or more structures are selected?

Darin.K
Trusted Enthusiast

The only problem I have with the Shift-key is that you enter two hand on the keyboard territory.  Maybe that is not bad.

 

I might add that with a name like "Remove and Rewire" that one may expect the operations to be Remove and Rewire as opposed to Delete and Rewire.  That way it could be more natural to make the shift key refer to Delete and Rewire.  Personally, I am much more likely to remove a structure than delete it so I prefer the unmodified shortcut for that operation.

 

The nice thing about QDKS is that no matter how you "mess it up" I can always "fix" it.  Anyways, I think R or Shift-R is a viable workaround to this problem, especially if you encounter it on a nearly daily basis.