Skip to content
Snippets Groups Projects
Commit 3034dc37 authored by Mateusz Żebrak's avatar Mateusz Żebrak
Browse files

Remove dead code

parent a2800f83
No related branches found
No related tags found
2 merge requests!601Async guard,!600v1.27.5.21 Release
...@@ -285,9 +285,6 @@ class TUIWorld(World, CliveDOMNode): ...@@ -285,9 +285,6 @@ class TUIWorld(World, CliveDOMNode):
self.app.run_worker(lock()) self.app.run_worker(lock())
def _on_going_into_unlocked_mode(self) -> None:
self.app.trigger_app_state_watchers()
def _setup_commands(self) -> TUICommands: def _setup_commands(self) -> TUICommands:
return TUICommands(self) return TUICommands(self)
......
...@@ -38,7 +38,6 @@ if TYPE_CHECKING: ...@@ -38,7 +38,6 @@ if TYPE_CHECKING:
from textual.app import ComposeResult from textual.app import ComposeResult
from textual.widget import Widget from textual.widget import Widget
from clive.__private.core.app_state import AppState
from clive.__private.core.commands.data_retrieval.update_node_data import Manabar from clive.__private.core.commands.data_retrieval.update_node_data import Manabar
from clive.__private.core.profile import Profile from clive.__private.core.profile import Profile
from clive.__private.ui.widgets.buttons.clive_button import CliveButtonVariant from clive.__private.ui.widgets.buttons.clive_button import CliveButtonVariant
...@@ -291,7 +290,6 @@ class Dashboard(BaseScreen): ...@@ -291,7 +290,6 @@ class Dashboard(BaseScreen):
def on_mount(self) -> None: def on_mount(self) -> None:
self.watch(self.world, "profile_reactive", self._update_account_containers) self.watch(self.world, "profile_reactive", self._update_account_containers)
self.watch(self.world, "app_state", self._update_mode)
async def _update_account_containers(self, profile: Profile) -> None: async def _update_account_containers(self, profile: Profile) -> None:
if self.tracked_accounts == self._previous_tracked_accounts: if self.tracked_accounts == self._previous_tracked_accounts:
...@@ -315,9 +313,6 @@ class Dashboard(BaseScreen): ...@@ -315,9 +313,6 @@ class Dashboard(BaseScreen):
await accounts_container.query("*").remove() await accounts_container.query("*").remove()
await accounts_container.mount_all(widgets_to_mount) await accounts_container.mount_all(widgets_to_mount)
def _update_mode(self, app_state: AppState) -> None:
self.is_unlocked = app_state.is_unlocked
@CliveScreen.prevent_action_when_no_working_account() @CliveScreen.prevent_action_when_no_working_account()
@CliveScreen.prevent_action_when_no_accounts_node_data() @CliveScreen.prevent_action_when_no_accounts_node_data()
def action_operations(self) -> None: def action_operations(self) -> None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment