forked from M-Labs/artiq
gui: save/restore last folder outside repository. Closes #476
This commit is contained in:
parent
ad3d7dc687
commit
490bb6ef2d
|
@ -298,3 +298,11 @@ class ExplorerDock(QtWidgets.QDockWidget):
|
||||||
|
|
||||||
def update_cur_rev(self, cur_rev):
|
def update_cur_rev(self, cur_rev):
|
||||||
self.revision.setText(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"]
|
||||||
|
|
|
@ -145,6 +145,7 @@ def main():
|
||||||
sub_clients["explist_status"],
|
sub_clients["explist_status"],
|
||||||
rpc_clients["schedule"],
|
rpc_clients["schedule"],
|
||||||
rpc_clients["experiment_db"])
|
rpc_clients["experiment_db"])
|
||||||
|
smgr.register(d_explorer)
|
||||||
|
|
||||||
d_datasets = datasets.DatasetsDock(sub_clients["datasets"],
|
d_datasets = datasets.DatasetsDock(sub_clients["datasets"],
|
||||||
rpc_clients["dataset_db"])
|
rpc_clients["dataset_db"])
|
||||||
|
|
Loading…
Reference in New Issue