From 2bc9a6f5bc4617dbcf0d3819eb9b5b70235b41e7 Mon Sep 17 00:00:00 2001 From: "J. Ungermann" Date: Tue, 7 Jun 2022 15:58:01 +0200 Subject: [PATCH] Simple fix for restarting UI and CSV support. (#1470) * Simple fix for restarting UI and CSV support. To be remodelled at a point in tim eafter 7.0.0 release. Fix #1467 * update --- localbuild/meta.yaml | 2 +- mslib/msui/mss_pyui.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/localbuild/meta.yaml b/localbuild/meta.yaml index ba2e0f17d..770e6a85a 100644 --- a/localbuild/meta.yaml +++ b/localbuild/meta.yaml @@ -38,7 +38,7 @@ requirements: - hdf4 - pillow - pytz - - pyqt >=5, <6 + - pyqt >=5, <5.13 - pygeoif - qt >=5.10, <6 - requests diff --git a/mslib/msui/mss_pyui.py b/mslib/msui/mss_pyui.py index a2dbd9ae6..4ab0fe329 100644 --- a/mslib/msui/mss_pyui.py +++ b/mslib/msui/mss_pyui.py @@ -405,6 +405,8 @@ def __init__(self, mscolab_data_dir=None, *args): picker_default = config_loader(dataset="filepicker_default") self.add_plugin_submenu("FTML", "ftml", None, picker_default, plugin_type="Import") self.add_plugin_submenu("FTML", "ftml", None, picker_default, plugin_type="Export") + self.add_plugin_submenu("CSV", "csv", load_from_csv, picker_default, plugin_type="Import") + self.add_plugin_submenu("CSV", "csv", save_to_csv, picker_default, plugin_type="Export") self.add_plugins() preload_urls = config_loader(dataset="WMS_preload") @@ -484,8 +486,6 @@ def menu_handler(self): def add_plugins(self): picker_default = config_loader(dataset="filepicker_default") - self.add_plugin_submenu("CSV", "csv", load_from_csv, picker_default, plugin_type="Import") - self.add_plugin_submenu("CSV", "csv", save_to_csv, picker_default, plugin_type="Export") self.import_plugins = {} self.export_plugins = {} self.add_import_plugins(picker_default)