mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-24 12:29:04 +08:00
fix remember peer card view type
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
e9b212ebd7
commit
752d84ffb0
@ -28,14 +28,16 @@ class _PeerTabPageState extends State<PeerTabPage>
|
||||
|
||||
setPeer() {
|
||||
final index = bind.getLocalFlutterConfig(k: 'peer-tab-index');
|
||||
if (index == '') return;
|
||||
_tabIndex.value = int.parse(index);
|
||||
if (index != '') {
|
||||
_tabIndex.value = int.parse(index);
|
||||
}
|
||||
|
||||
final uiType = bind.getLocalFlutterConfig(k: 'peer-card-ui-type');
|
||||
if (uiType == '') return;
|
||||
peerCardUiType.value = int.parse(uiType) == PeerUiType.list.index
|
||||
? PeerUiType.list
|
||||
: PeerUiType.grid;
|
||||
if (uiType != '') {
|
||||
peerCardUiType.value = int.parse(uiType) == PeerUiType.list.index
|
||||
? PeerUiType.list
|
||||
: PeerUiType.grid;
|
||||
}
|
||||
}
|
||||
|
||||
// hard code for now
|
||||
|
Loading…
Reference in New Issue
Block a user