Load the last opened file or default graph.
(self)
| 133 | return False |
| 134 | |
| 135 | def load_last_file(self): |
| 136 | """Load the last opened file or default graph.""" |
| 137 | last_file = self.settings.value("last_file_path", None) |
| 138 | if last_file and os.path.exists(last_file): |
| 139 | return self.load(file_path=last_file) |
| 140 | else: |
| 141 | return self.load_initial_graph("examples/password_generator_tool.md") |
| 142 | |
| 143 | def load_initial_graph(self, file_path): |
| 144 | """Load the initial default graph.""" |
no test coverage detected