2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

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 ad3d7dc687
commit 490bb6ef2d
2 changed files with 9 additions and 0 deletions

View File

@ -298,3 +298,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"]

View File

@ -145,6 +145,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"])