From eee46f1228995178a00e2bd3fcdf35df1c877ea0 Mon Sep 17 00:00:00 2001 From: ReimarBauer Date: Sat, 5 Oct 2024 12:38:12 +0200 Subject: [PATCH 1/2] autoplot: undo removinvg show release_info (#2552) --- mslib/msui/msui_mainwindow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mslib/msui/msui_mainwindow.py b/mslib/msui/msui_mainwindow.py index b3c3663d0..b89defb1f 100644 --- a/mslib/msui/msui_mainwindow.py +++ b/mslib/msui/msui_mainwindow.py @@ -50,6 +50,7 @@ from mslib.msui.icons import icons, python_powered from mslib.utils.qt import get_open_filenames, get_save_filename, show_popup from mslib.utils.config import read_config_file, config_loader +from mslib.utils import release_info from PyQt5 import QtGui, QtCore, QtWidgets, QtTest from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas @@ -407,6 +408,7 @@ def __init__(self, parent=None): super().__init__(parent) self.setupUi(self) self.lblVersion.setText(f"Version: {__version__}") + self.lblNewVersion.setText(f"{release_info.check_for_new_release()[0]}") self.milestone_url = f'https://github.com/Open-MSS/MSS/issues?q=is%3Aclosed+milestone%3A{__version__[:-1]}' self.lblChanges.setText(f'New Features and Changes') blub = QtGui.QPixmap(python_powered()) From 342d317705cde278846b92edca736d1f0ce4adf4 Mon Sep 17 00:00:00 2001 From: "Jets@ps2004" <120110796+Preetam-Das26@users.noreply.github.com> Date: Sat, 5 Oct 2024 16:15:13 +0530 Subject: [PATCH 2/2] COMMIT fixes immediate update in side/linear view (#2553) --- mslib/msui/linearview.py | 2 ++ mslib/msui/sideview.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mslib/msui/linearview.py b/mslib/msui/linearview.py index c33d2c14a..0f1b50028 100644 --- a/mslib/msui/linearview.py +++ b/mslib/msui/linearview.py @@ -161,6 +161,8 @@ def openTool(self, index, parent=None, config_settings=None): view="Linear View", config_settings=config_settings) widget.treewidget_item_selected.connect( lambda url, layer, style, level: self.tree_item_select(url, layer, style, level)) + widget.update_op_flight_treewidget.connect( + lambda opfl, flight: parent.update_treewidget_op_fl(opfl, flight)) else: raise IndexError("invalid control index") # Create the actual dock widget containing . diff --git a/mslib/msui/sideview.py b/mslib/msui/sideview.py index 719a2876a..fa45bfa2f 100644 --- a/mslib/msui/sideview.py +++ b/mslib/msui/sideview.py @@ -335,6 +335,8 @@ def openTool(self, index, parent=None, config_settings=None): view="Side View", config_settings=config_settings) widget.treewidget_item_selected.connect( lambda url, layer, style, level: self.tree_item_select(url, layer, style, level)) + widget.update_op_flight_treewidget.connect( + lambda opfl, flight: parent.update_treewidget_op_fl(opfl, flight)) else: raise IndexError("invalid control index") # Create the actual dock widget containing .