gui: save/restore last folder outside repository. Closes #476

This commit is contained in:
Sebastien Bourdeauducq 2016-06-12 13:18:22 +08:00
parent 2b936429da
commit 46b75dba8d
2 changed files with 9 additions and 0 deletions

View File

@ -132,6 +132,7 @@ def main():
sub_clients["explist_status"],
rpc_clients["schedule"],
rpc_clients["experiment_db"])
smgr.register(d_explorer)
d_datasets = datasets.DatasetsDock(sub_clients["datasets"],
rpc_clients["dataset_db"])

View File

@ -296,3 +296,11 @@ class ExplorerDock(QtWidgets.QDockWidget):
def update_cur_rev(self, cur_rev):
self.revision.setText(cur_rev)
def save_state(self):
return {
"current_directory": self.current_directory
}
def restore_state(self, state):
self.current_directory = state["current_directory"]