Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
clive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
clive
Commits
3034dc37
Commit
3034dc37
authored
1 month ago
by
Mateusz Żebrak
Browse files
Options
Downloads
Patches
Plain Diff
Remove dead code
parent
a2800f83
No related branches found
No related tags found
2 merge requests
!601
Async guard
,
!600
v1.27.5.21 Release
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
clive/__private/core/world.py
+0
-3
0 additions, 3 deletions
clive/__private/core/world.py
clive/__private/ui/screens/dashboard/dashboard.py
+0
-5
0 additions, 5 deletions
clive/__private/ui/screens/dashboard/dashboard.py
with
0 additions
and
8 deletions
clive/__private/core/world.py
+
0
−
3
View file @
3034dc37
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
clive/__private/ui/screens/dashboard/dashboard.py
+
0
−
5
View file @
3034dc37
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment