Add open on double click
offlate/ui/manager.py
131 | 131 | settings_button.clicked.connect(self.settings) | |
132 | 132 | about_button.clicked.connect(self.about) | |
133 | 133 | self.projectlist.currentItemChanged.connect(self.activate) | |
134 | + | self.projectlist.itemDoubleClicked.connect(self.doubleclick) | |
134 | 135 | self.remove_button.clicked.connect(self.remove) | |
135 | 136 | self.edit_button.clicked.connect(self.edit) | |
136 | 137 | self.open_button.clicked.connect(self.open) | |
… | |||
245 | 246 | self.openProject(name) | |
246 | 247 | return "" | |
247 | 248 | ||
249 | + | def doubleclick(self, item): | |
250 | + | data = item.data(Qt.UserRole) | |
251 | + | name = data['name'] | |
252 | + | self.openProject(name) | |
253 | + | ||
248 | 254 | def openProject(self, name): | |
249 | 255 | self.editor.show() | |
250 | 256 | self.parent().hide() |