INNER CODE UNIT · Python

on_mount

Kohei-Wada/taskdog · packages/taskdog-ui/src/taskdog/tui/app.py:409

    async def on_mount(self) -> None:
        """Called when app is mounted."""
        self._apply_custom_keybindings()

        # Apply theme from config with fallback for invalid themes
        try:
            self.theme = self._theme
        except InvalidThemeError:
            self.notify(
                f"Invalid theme '{self._theme}'. Using default.",
                severity="warning",
            )
            self.theme = "textual-dark"

        self.main_screen = MainScreen(state=self.state)
        self.push_screen(self.main_screen)

        # Initialize TaskUIManager (needs MainScreen to be available)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…