diff --git a/Tst/progress_view/progress_view.cfg b/Tst/progress_view/progress_view.cfg index e91c11cb0b2449e0725f044e985fab7fa49f18ae..0ba6217193135a2e99f648efcc5b70ef2ebc241f 100644 --- a/Tst/progress_view/progress_view.cfg +++ b/Tst/progress_view/progress_view.cfg @@ -11,4 +11,7 @@ minimum-width-step-mode = 500 minimum-width-run-mode = 700 basic-height = 1000 basic-width-step-mode = 900 -basic-width-run-mode = 1100 \ No newline at end of file +basic-width-run-mode = 1100 + +[progress-viewer-history] +last-folder = ${paths:tst}/test_specs \ No newline at end of file diff --git a/Tst/progress_view/progress_view.py b/Tst/progress_view/progress_view.py index 2067eaa021a31520f884ad2365ae97a05ac372de..2eb93362baacc89aa72c9438828c3d30e04694e8 100644 --- a/Tst/progress_view/progress_view.py +++ b/Tst/progress_view/progress_view.py @@ -255,11 +255,12 @@ class TestProgressView(Gtk.ApplicationWindow): parent=self, action=Gtk.FileChooserAction.OPEN) dialog.add_buttons(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OPEN, Gtk.ResponseType.OK) - + dialog.set_current_folder(confignator.get_option(section='progress-viewer-history', option='last-folder')) self.add_filters(dialog) response = dialog.run() if response == Gtk.ResponseType.OK: file_selected = dialog.get_filename() + confignator.save_option('progress-viewer-history', 'last-folder', os.path.dirname(file_selected)) self.open_test_files(None, self.get_log_file_paths_from_json_file_name(file_selected)) elif response == Gtk.ResponseType.CANCEL: pass @@ -1398,6 +1399,7 @@ class File_Path_Dialog(Gtk.FileChooserDialog): #main_box.pack_end(label, False, True, 10) area.pack_start(label, False, True, 0) self.show_all() + def run(): bus_name = confignator.get_option('dbus_names', 'progress-view') dbus.validate_bus_name(bus_name) diff --git a/Tst/tst/tst.py b/Tst/tst/tst.py index 1176f930e1952ba20143a281ac3f7fa2bf40a8d2..fd383386f12b6da5205fb371ec14140fb1883044 100755 --- a/Tst/tst/tst.py +++ b/Tst/tst/tst.py @@ -544,11 +544,13 @@ class TstAppWindow(Gtk.ApplicationWindow): self, Gtk.FileChooserAction.SAVE, (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_SAVE, Gtk.ResponseType.OK)) + dialog.set_current_folder(confignator.get_option(section='tst-history', option='last-folder')) dialog.set_current_name(current_name+'.json') self.add_filters(dialog) response = dialog.run() if response == Gtk.ResponseType.OK: file_selected = dialog.get_filename() + confignator.save_option('tst-history', 'last-folder', os.path.dirname(file_selected)) if '-v_' in file_selected: test_name = file_selected.split('-v_')[0] filename = file_selected