Fix. Peer tab, match name and icon (#7489)
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
05969c2f99
commit
dd90e84f6a
@ -25,13 +25,15 @@ class PeerTabModel with ChangeNotifier {
|
|||||||
'Recent sessions',
|
'Recent sessions',
|
||||||
'Favorites',
|
'Favorites',
|
||||||
if (!isWeb) 'Discovered',
|
if (!isWeb) 'Discovered',
|
||||||
|
if (!(bind.isDisableAb() || bind.isDisableAccount())) 'Address book',
|
||||||
|
if (!bind.isDisableAccount()) 'Group',
|
||||||
];
|
];
|
||||||
final List<IconData> icons = [
|
final List<IconData> icons = [
|
||||||
Icons.access_time_filled,
|
Icons.access_time_filled,
|
||||||
Icons.star,
|
Icons.star,
|
||||||
Icons.explore,
|
if (!isWeb) Icons.explore,
|
||||||
IconFont.addressBook,
|
if (!(bind.isDisableAb() || bind.isDisableAccount())) IconFont.addressBook,
|
||||||
Icons.group,
|
if (!bind.isDisableAccount()) Icons.group,
|
||||||
];
|
];
|
||||||
final List<bool> _isVisible = List.filled(5, true, growable: false);
|
final List<bool> _isVisible = List.filled(5, true, growable: false);
|
||||||
List<bool> get isVisible => _isVisible;
|
List<bool> get isVisible => _isVisible;
|
||||||
@ -49,13 +51,6 @@ class PeerTabModel with ChangeNotifier {
|
|||||||
String get lastId => _lastId;
|
String get lastId => _lastId;
|
||||||
|
|
||||||
PeerTabModel(this.parent) {
|
PeerTabModel(this.parent) {
|
||||||
if (!(bind.isDisableAb() || bind.isDisableAccount())) {
|
|
||||||
tabNames.add('Address book');
|
|
||||||
}
|
|
||||||
if (!bind.isDisableAccount()) {
|
|
||||||
tabNames.add('Group');
|
|
||||||
}
|
|
||||||
|
|
||||||
// visible
|
// visible
|
||||||
try {
|
try {
|
||||||
final option = bind.getLocalFlutterOption(k: 'peer-tab-visible');
|
final option = bind.getLocalFlutterOption(k: 'peer-tab-visible');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user