From efcc365cc872231eaba61f7e7ac85e2484bb63a8 Mon Sep 17 00:00:00 2001
From: KevinVG207
Date: Mon, 5 Jun 2023 22:02:48 +0200
Subject: [PATCH 1/2] Hotfixes
- Change some error boxes into warning boxes.
- Make about tab links clickable.
---
umalauncher/gui.py | 1 +
umalauncher/training_tracker.py | 8 ++++----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/umalauncher/gui.py b/umalauncher/gui.py
index 6cb26ea..569c626 100644
--- a/umalauncher/gui.py
+++ b/umalauncher/gui.py
@@ -1115,6 +1115,7 @@ def init_ui(self, settings, *args, **kwargs):
self.lbl_about.setSizePolicy(sizePolicy)
self.lbl_about.setLayoutDirection(qtc.Qt.LeftToRight)
self.lbl_about.setText(u"
Created by KevinVG207
Github - Website - Twitter
")
+ self.lbl_about.setOpenExternalLinks(True)
self.lbl_about.setAlignment(qtc.Qt.AlignCenter)
self.verticalLayout.addWidget(self.lbl_about)
diff --git a/umalauncher/training_tracker.py b/umalauncher/training_tracker.py
index af65784..ac13699 100644
--- a/umalauncher/training_tracker.py
+++ b/umalauncher/training_tracker.py
@@ -781,17 +781,17 @@ def training_csv_dialog(training_paths=None):
except util.pywinerror as e:
if e.winerror == 12291:
# Ran out of buffer space
- util.show_error_box("Error", "Too many files selected. / File names too long.")
+ util.show_warning_box("Error", "Too many files selected. / File names too long.")
return
# os.chdir(cwd_before)
- util.show_error_box("Error", "No file(s) selected.")
+ util.show_warning_box("Error", "No file(s) selected.")
return
# Check if all files end with .gz
# If not, show error message
for training_path in training_paths:
if not training_path.endswith(".gz"):
- util.show_error_box("Error", "All chosen files must be .gz (gzip) files.")
+ util.show_warning_box("Error", "All chosen files must be .gz (gzip) files.")
return
try:
@@ -807,7 +807,7 @@ def training_csv_dialog(training_paths=None):
except util.pywinerror:
# os.chdir(cwd_before)
- util.show_error_box("Error", "No output file given.")
+ util.show_warning_box("Error", "No output file given.")
return
# os.chdir(cwd_before)
From 53fcbf6f91087bcb0fd1929d78a2e26115129d6a Mon Sep 17 00:00:00 2001
From: KevinVG207
Date: Mon, 5 Jun 2023 22:09:48 +0200
Subject: [PATCH 2/2] Version bump: 1.5.1
---
umalauncher/version.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/umalauncher/version.py b/umalauncher/version.py
index 678791b..2b2f9c9 100644
--- a/umalauncher/version.py
+++ b/umalauncher/version.py
@@ -9,7 +9,7 @@
import util
import gui
-VERSION = "1.5.0"
+VERSION = "1.5.1"
def parse_version(version_string: str):
"""Convert version string to tuple."""