Skip to content

Commit

Permalink
Splitfilter Speichern
Browse files Browse the repository at this point in the history
  • Loading branch information
lenilsas committed Jan 26, 2025
1 parent cd8bc34 commit c6a09e2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/de/jost_net/JVerein/gui/control/BuchungsControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,18 @@ public String toString()
{
return getText();
}

public static SplitFilter getByKey(int key)
{
for (SplitFilter split : SplitFilter.values())
{
if (split.getKey() == key)
{
return split;
}
}
return null;
}
}

private Calendar calendar = Calendar.getInstance();
Expand Down Expand Up @@ -793,7 +805,8 @@ public SelectInput getSuchSplibuchung()
}
int split = settings.getInt(settingsprefix + "split",
SplitFilter.ALLE.getKey());
suchsplitbuchung = new SelectInput(SplitFilter.values(), split);
suchsplitbuchung = new SelectInput(SplitFilter.values(),
SplitFilter.getByKey(split));
suchsplitbuchung.addListener(new FilterListener());

return suchsplitbuchung;
Expand Down

0 comments on commit c6a09e2

Please sign in to comment.