(self, filename)
| 171 | self.settings.setValue("recent_files", recent_files) |
| 172 | |
| 173 | def add_recent_filename(self, filename): |
| 174 | actions = self.recentfiles_menu.actions() |
| 175 | filenames = [action.text() for action in actions] |
| 176 | if filename in filenames: |
| 177 | return |
| 178 | action = QAction(filename, self) |
| 179 | before_action = actions[0] if actions else None |
| 180 | self.recentfiles_menu.insertAction(before_action, action) |
| 181 | |
| 182 | @property |
| 183 | def cfg(self): |
no outgoing calls
no test coverage detected