wip
This commit is contained in:
@@ -209,7 +209,7 @@ const App = () => {
|
||||
const updateGame = async (id: string) => {
|
||||
console.log(`🎯 Updating game with id=${id}`);
|
||||
try {
|
||||
const success = await invoke('install_game', { id });
|
||||
const success = await invoke('update_game', { id });
|
||||
if (success) {
|
||||
console.log(`✅ Game update for id=${id} started...`);
|
||||
// update install status in gameItems for this game
|
||||
@@ -217,7 +217,7 @@ const App = () => {
|
||||
? { ...item, install_status: InstallStatus.CheckingServer }
|
||||
: item));
|
||||
} else {
|
||||
// game is already being installed
|
||||
// game is already being installed/updated
|
||||
console.warn(`🚧 Game with id=${id} is already being updated`);
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user