Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am back.
Sorry for my recklessness earlier. #139 #154
Here's the demo video
Screencast from 2024-10-07 19-07-14.webm
In
rooms_sidebar.rs
There is a
static
with its fuction.Let's match event and update they two.
To improve performance, Let it do nothing when app is running back.
In
rooms_list.rs
To distinguish the
Rooms
andPeople
in therooms_list.rs
, they two were added. (Just LikeRooms
two.)They two
static
and function would be shown at the end on the UI list, seperately in theRooms
andPeople
.There are some types are used to check Which one is selected,
People
orRoom
.In
draw_walk
ofRoomsList
&PeopleList
, let's match theWHICH_IS_ACTIVE
.Example is
RoomsList
, butPeopleList
is the same way.In
handle_event
ofRoomsList
&PeopleList
,Once the
RoomPreview
is clicked,WHICH_IS_ACTIVE
would be set toRooms
orPeople
.Here view
Rooms
as the example,People
is the same way.In
sliding_sync.rs
To distinguish the
Rooms
andPeople
,lots of code (judgements) were added, no code demo here, please review :)
Intentionally, I called
apply_all_rooms_count
to count all the valid rooms.