Start the service.
(self)
| 1553 | return cleaned |
| 1554 | |
| 1555 | def _start(self): |
| 1556 | """Start the service.""" |
| 1557 | if self.running: |
| 1558 | messagebox.showwarning( |
| 1559 | get_text("warning_title"), get_text("service_already_running") |
| 1560 | ) |
| 1561 | return |
| 1562 | |
| 1563 | account = self.selected_account.get() |
| 1564 | if not account: |
| 1565 | messagebox.showerror( |
| 1566 | get_text("error_title"), get_text("select_account_error") |
| 1567 | ) |
| 1568 | return |
| 1569 | |
| 1570 | # Save last account |
| 1571 | self.config["last_account"] = account |
| 1572 | self._save_config() |
| 1573 | |
| 1574 | mode = self.run_mode.get() |
| 1575 | self._start_internal(mode=mode, account=account) |
| 1576 | |
| 1577 | def _start_internal( |
| 1578 | self, |
no test coverage detected