From ab91be03ad47f016a5cc2632cb7daf474b75471a Mon Sep 17 00:00:00 2001
From: Miepee <38186597+Miepee@users.noreply.github.com>
Date: Sun, 3 Oct 2021 10:30:22 +0200
Subject: [PATCH] fix main tab GUI not updating in some cases + add some
missing language entries
---
AM2RLauncher/AM2RLauncher/Language/Text.es.resx | 2 +-
AM2RLauncher/AM2RLauncher/Language/Text.it.resx | 6 +++---
AM2RLauncher/AM2RLauncher/Language/Text.pt.resx | 4 ++--
AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs | 9 +++++++--
4 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/AM2RLauncher/AM2RLauncher/Language/Text.es.resx b/AM2RLauncher/AM2RLauncher/Language/Text.es.resx
index 21a8d1d..fd7ebd1 100644
--- a/AM2RLauncher/AM2RLauncher/Language/Text.es.resx
+++ b/AM2RLauncher/AM2RLauncher/Language/Text.es.resx
@@ -262,7 +262,7 @@
ABRIR CARPETA DE DATOS DEL PERFIL
- Abre la Carpeta donde se guardan los datos de $NAME
+ Abre la Carpeta donde se guardan las partidas de $NAME
JUGAR
diff --git a/AM2RLauncher/AM2RLauncher/Language/Text.it.resx b/AM2RLauncher/AM2RLauncher/Language/Text.it.resx
index 885fb3b..9c4538c 100644
--- a/AM2RLauncher/AM2RLauncher/Language/Text.it.resx
+++ b/AM2RLauncher/AM2RLauncher/Language/Text.it.resx
@@ -253,16 +253,16 @@
Impossibile connettersi a internet! Potrai giocare comunque al gioco, ma gli aggiornamenti non avverranno finchè il launcher non è riavviato e la connessione a internet avrà successo.
- APRI CARTELLA SALVATAGGIO PROFILO
+ APRI CARTELLA PROFILO
- Apre la Cartella dove i file di salvataggio sono presenti per $NAME.
+ Apre la cartella dove si trovano i file di gioco per $NAME
APRI CARTELLA SALVATAGGIO PROFILO
- Apre la Cartella dove i file di salvataggio sono presenti per $NAME.
+ Apre la Cartella dove i file di salvataggio sono presenti per $NAME
GIOCA
diff --git a/AM2RLauncher/AM2RLauncher/Language/Text.pt.resx b/AM2RLauncher/AM2RLauncher/Language/Text.pt.resx
index ba8bbd4..c9a1183 100644
--- a/AM2RLauncher/AM2RLauncher/Language/Text.pt.resx
+++ b/AM2RLauncher/AM2RLauncher/Language/Text.pt.resx
@@ -253,10 +253,10 @@
Não foi possível estabelecer uma conexão com a Internet! Você ainda pode jogar, mas atualizações não vão ocorrer até que o launcher seja reiniciado e se conecte a internet.
- ABRIR PASTA DE SAVES DO PERFIL
+ ABRIR PASTA DO PERFIL
- Abre a pasta onde se encontram os saves para $NAME
+ Abre a pasta onde se encontram os arquivos de jogo para $NAME
ABRIR PASTA DE SAVES DO PERFIL
diff --git a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs
index 0314b64..97c15ec 100644
--- a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs
+++ b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs
@@ -231,8 +231,13 @@ namespace AM2RLauncher
log.Info("Profiles loaded.");
// refresh the author and version label on the main tab
- profileAuthorLabel.Text = Language.Text.Author + " " + profileList[profileDropDown.SelectedIndex].Author;
- profileVersionLabel.Text = Language.Text.VersionLabel + " " + profileList[profileDropDown.SelectedIndex].Version;
+ if (profileList.Count > 0)
+ {
+ profileAuthorLabel.Text = Language.Text.Author + " " + profileList[profileDropDown.SelectedIndex].Author;
+ profileVersionLabel.Text = Language.Text.VersionLabel + " " + profileList[profileDropDown.SelectedIndex].Version;
+ }
+
+ UpdateStateMachine();
}
///