Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rustdesk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李朝发
rustdesk
Commits
19586f28
Commit
19586f28
authored
Sep 19, 2022
by
rustdesk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save peer_tab_index
parent
0679d01a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
connection_page.dart
flutter/lib/desktop/pages/connection_page.dart
+15
-2
No files found.
flutter/lib/desktop/pages/connection_page.dart
View file @
19586f28
...
...
@@ -768,20 +768,33 @@ class _PeerTabbedPage extends StatefulWidget {
class
_PeerTabbedPageState
extends
State
<
_PeerTabbedPage
>
with
SingleTickerProviderStateMixin
{
late
PageController
_pageController
=
PageController
();
RxInt
_tabIndex
=
0
.
obs
;
late
final
PageController
_pageController
=
PageController
();
final
RxInt
_tabIndex
=
0
.
obs
;
@override
void
initState
()
{
()
async
{
await
bind
.
mainGetLocalOption
(
key:
'peer_tab_index'
).
then
((
value
)
{
if
(
value
==
''
)
return
;
final
tab
=
int
.
parse
(
value
);
_tabIndex
.
value
=
tab
;
_pageController
.
jumpToPage
(
tab
);
});
}();
super
.
initState
();
}
// hard code for now
void
_handleTabSelection
(
int
index
)
{
if
(
index
==
_tabIndex
.
value
)
return
;
// reset search text
peerSearchText
.
value
=
""
;
peerSearchTextController
.
clear
();
_tabIndex
.
value
=
index
;
()
async
{
await
bind
.
mainSetLocalOption
(
key:
'peer_tab_index'
,
value:
index
.
toString
());
}();
_pageController
.
jumpToPage
(
index
);
switch
(
index
)
{
case
0
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment