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:
parent
ad3d7dc687
commit
490bb6ef2d
@ -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"]
|
||||
|
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user