Skip to content

Commit

Permalink
feat: Update ConstructionFrame to show upgrade feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsNeil17 committed Jun 24, 2024
1 parent 49b3fe6 commit 75263e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gui/frames/construction.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ def show_feedback(self, feedback: str) -> None:
def upgrade_building(self, building_type: str) -> None:
self.upgradeResponse = self.parent.backend.upgrade_building(building_type, '1')

self.parent.change_frame(
ConstructionFrame(self.parent)
) # TODO instead of initialising a new frame, update the current frame
frame = ConstructionFrame(self.parent)
self.parent.change_frame(frame) # TODO instead of initialising a new frame, update the current frame
frame.show_feedback(self.upgradeResponse["detail"])

def render(self):
self.label.grid(row=0, column=0)
Expand Down

0 comments on commit 75263e1

Please sign in to comment.