Skip to content

Commit

Permalink
#2119 Fix reinit of player overview table (#2172)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsbrenk authored Nov 3, 2024
1 parent 1caa9c0 commit 43f7cb1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/main/java/core/gui/model/PlayerOverviewTableModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ protected void initData() {
}
}
}
fireTableDataChanged();
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/module/playerOverview/PlayerOverviewTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ public final void selectPlayer(int playerId) {

@Override
public final void reInit() {
var player = getSelectedPlayer();
resetPlayers();
repaint();
if ( player != null ) {selectPlayer(player.getPlayerId());}
}

public final void reInitModel() {
Expand Down
6 changes: 0 additions & 6 deletions src/main/resources/language/English.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1173,16 +1173,10 @@ Lineup.Swap.ToolTip=Swap two players of the lineup
ls.lineup.position.warning=not best suited position
Lineup.CopyRatings.ToolTip=Copy ratings into the clipboard
Lineup.PredictionModel.ToolTip=Select a ratings prediction model
Lineup.Feedback.Panel.Title=Feedback Plugin
Lineup.Feedback.ToolTip=Help improve rating prediction
Lineup.CopyRatings.PlainText=Plaintext
Lineup.CopyRatings.HattrickML=HT-ML table (HT forum)
Lineup.CopyRatings.LineupAndRatings=Lineup and Ratings
Info.users=Users
Lineup.Feedback.Panel.Instruction1=Please set the <b>same lineup both in HO and in HT</b>, as per the following recommendation
Lineup.Feedback.Panel.Instruction2=Paste the prediction ratings provided by HT
Lineup.Feedback.Panel.btnRefresh=Refresh
Lineup.Feedback.Panel.btnSend=Send

#oauth
oauth.Title=Authorization
Expand Down

0 comments on commit 43f7cb1

Please sign in to comment.