forked from M-Labs/artiq
gui: save/restore last folder outside repository. Closes #476
This commit is contained in:
parent
2b936429da
commit
46b75dba8d
|
@ -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"])
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue