Merge pull request #6247 from sahilyeole/feat/list_view
Fix small tiles view not restored
This commit is contained in:
commit
84fc5f7d67
@ -75,9 +75,11 @@ class _PeerTabPageState extends State<PeerTabPage>
|
|||||||
void initState() {
|
void initState() {
|
||||||
final uiType = bind.getLocalFlutterOption(k: 'peer-card-ui-type');
|
final uiType = bind.getLocalFlutterOption(k: 'peer-card-ui-type');
|
||||||
if (uiType != '') {
|
if (uiType != '') {
|
||||||
peerCardUiType.value = int.parse(uiType) == PeerUiType.list.index
|
peerCardUiType.value = int.parse(uiType) == 0
|
||||||
? PeerUiType.list
|
? PeerUiType.grid
|
||||||
: PeerUiType.grid;
|
: int.parse(uiType) == 1
|
||||||
|
? PeerUiType.tile
|
||||||
|
: PeerUiType.list;
|
||||||
}
|
}
|
||||||
hideAbTagsPanel.value =
|
hideAbTagsPanel.value =
|
||||||
bind.mainGetLocalOption(key: "hideAbTagsPanel").isNotEmpty;
|
bind.mainGetLocalOption(key: "hideAbTagsPanel").isNotEmpty;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user