Remove useless button when editing settings.
offlate/ui/config/settings.py
218 | 218 | vbox.addStretch(1) | |
219 | 219 | buttonbox = QHBoxLayout() | |
220 | 220 | buttonbox.addStretch(1) | |
221 | - | closeButton = QPushButton(self.tr("Cancel")) | |
222 | - | closeButton.clicked.connect(self.quit) | |
221 | + | if self.welcome: | |
222 | + | closeButton = QPushButton(self.tr("Cancel")) | |
223 | + | closeButton.clicked.connect(self.quit) | |
224 | + | buttonbox.addWidget(closeButton) | |
223 | 225 | doneButton = QPushButton(self.tr("Done!")) | |
224 | 226 | doneButton.clicked.connect(self.done) | |
225 | - | buttonbox.addWidget(closeButton) | |
226 | 227 | buttonbox.addWidget(doneButton) | |
227 | 228 | vbox.addLayout(buttonbox) | |
228 | 229 |