From 4c77056e131142b21e881b75d0e276782135c376 Mon Sep 17 00:00:00 2001 From: Poleric Date: Thu, 4 Jun 2026 20:17:22 +0800 Subject: [PATCH] fix: typo in using enum --- src/inventory_wars/gui/InventoryWars/OngoingView.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inventory_wars/gui/InventoryWars/OngoingView.qml b/src/inventory_wars/gui/InventoryWars/OngoingView.qml index 126493f..0968d60 100644 --- a/src/inventory_wars/gui/InventoryWars/OngoingView.qml +++ b/src/inventory_wars/gui/InventoryWars/OngoingView.qml @@ -107,7 +107,7 @@ Rectangle { font.pixelSize: UIStyle.fontSizeM color: UIStyle.textColor - text: root.gameService.state == GameService.Ongoing ? "???" : root.round.item_name + text: root.gameService.state == GameService.GameState.Hidden ? "???" : root.round.item_name } Image { @@ -115,7 +115,7 @@ Rectangle { Layout.preferredWidth: 256 Layout.preferredHeight: 256 - source: root.gameService.state == GameService.Ongoing ? "images/unknown.png" : root.round.item_image + source: root.gameService.state == GameService.GameState.Hidden ? "images/unknown.png" : root.round.item_image fillMode: Image.PreserveAspectFit } @@ -131,7 +131,7 @@ Rectangle { Timer { id: elapsedTimer interval: 10 - running: root.gameService.state != GameService.Ended + running: root.gameService.state != GameService.GameState.Ended repeat: true onTriggered: {