question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

K-Truss and Hierarchical menu items buttons should enable/disable properly

See original GitHub issue

Description

These menu items are not disabled when there is no graph opened and no valid graph opened. When no graph is opened, the buttons inside are disabled except Cluster. But when loaded on an empty graph, other buttons except Cluster are initially locked, but if you click on the Cluster button now, it enables the Interactive-Enabled button, and clicking that enables other buttons.

The enabled Cluster button or any other button in both windows don’t do anything or throw any errors, so this doesn’t require immediate fixing.

If the empty graph is added after the K-Truss and Hierarchical windows, the buttons are not enabled even after a valid graph is added, until you click on the only enabled Cluster button, which enable the other buttons in the same order above. It is nice if we can enable the Interactive-Enabled button as well, similar to when these windows are added on a valid graph.

When these windows are added on a valid graph, both the Cluster and Interactive-Enabled buttons are enabled but clicking
on Cluster doesn’t seem to do anything but disabling itself? May be I am not doing it properly?

Steps to Reproduce

  1. Tools/Cluster > Hierarchical
  2. Tools/Cluster > K-Truss

Expected behaviour: Buttons should enable/disable properly

Actual behaviour: Buttons are not enabled/disabled properly

Reproduces how often: 100%

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Atlas139mkmcommented, Sep 23, 2021

Is this not already done? Currently: start - Cluster button is enabled, every other button is disabled click Cluster - enables Interactive button, disables Cluster click Interactive button - every other button enables, interactive button changes text click Interactive button again - every other button disables, interactive button changes text

My assumption is the cluster button, does the calculation then disables itself as the user doesn’t need to do the calculation again. The cluster button enables itself again if the user changes the graph, it also tells the user the graph has changed.

Is this issue still valid or am I not understanding the component that is not working properly?

0reactions
Auriga2commented, Oct 1, 2021

@GammaVel Yes that makes sense. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

constellation-app/community - Gitter
Testing K-Truss and Hierarchical: These menu items are not disabled when there is no graph opened and no valid graph opened; although the...
Read more >
DISABLE MENU ITEM
The DISABLE MENU ITEM command disables the menu item whose menu number or reference is passed in menu and whose item number is...
Read more >
Should an “Enable”/“Disable” menu item use a checkmark or ...
My instinct is that the menu items should have captions like “Enable Feature”, and that we should display a checkmark next to the...
Read more >
Unable to disable menu item wxpython - Stack Overflow
1 Answer. Save this answer. Show activity on this post. You have to disable the menuitem after it has been appended to the...
Read more >
Menu Buttons and Custom Menus - LiveCode Lessons
But menu-style buttons look and behave as various types of menu controls. ... Cascading menu item: Used to create hierarchical menu items in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found