Skip to content

Commit

Permalink
Bug Fix: Contract/Industry jobs assets was not updated on user status…
Browse files Browse the repository at this point in the history
… change
  • Loading branch information
GoldenGnu committed Oct 27, 2024
1 parent 6d1cbc8 commit b21783f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,13 @@ public void actionPerformed(ActionEvent e) {
if (contract == null || contract.isESI() || status == contract.getStatus()) {
return;
}
boolean before = contract.isOpen();
contract.setStatus(status);
tableModel.fireTableDataChanged();
if (before != contract.isOpen()) {
program.updateEventListsWithProgress();
} else {
tableModel.fireTableDataChanged();
}
program.saveProfile();
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,13 @@ public void actionPerformed(ActionEvent e) {
if (industryJob == null || industryJob.isESI() || industryJob.getStatus() == status) {
return;
}
boolean before = industryJob.isNotDeliveredToAssets();
industryJob.setStatus(status);
tableModel.fireTableDataChanged();
if (before != industryJob.isNotDeliveredToAssets()) {
program.updateEventListsWithProgress();
} else {
tableModel.fireTableDataChanged();
}
program.saveProfile();
}
});
Expand Down

0 comments on commit b21783f

Please sign in to comment.