Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation Expand merken #575

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/de/jost_net/JVerein/gui/navigation/MyItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ public class MyItem implements NavigationItem

private String icon;

private static int maxId = 0;

private int id;

public MyItem(NavigationItem item, String navitext, Action action)
{
this(item, navitext, action, null);
Expand All @@ -54,6 +58,7 @@ public MyItem(NavigationItem item, String navitext, Action action)
public MyItem(NavigationItem item, String navitext, Action action,
String icon)
{
this.id = maxId++;
this.parent = item;
this.action = action;
this.navitext = navitext;
Expand Down Expand Up @@ -239,7 +244,7 @@ public String[] getAttributeNames()
@Override
public String getID()
{
return getClass().getName() + "." + getName();
return getClass().getName() + "." + id + "." + getName();
}

/**
Expand Down
Loading