fix cursor menu divider and Auto (null) (#8116)
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
1acd7bd19c
commit
b2f4ba0882
@ -362,7 +362,8 @@ Future<List<TRadioMenu<String>>> toolbarCodec(
|
|||||||
}
|
}
|
||||||
|
|
||||||
var autoLabel = translate('Auto');
|
var autoLabel = translate('Auto');
|
||||||
if (groupValue == 'auto') {
|
if (groupValue == 'auto' &&
|
||||||
|
ffi.qualityMonitorModel.data.codecFormat != null) {
|
||||||
autoLabel = '$autoLabel (${ffi.qualityMonitorModel.data.codecFormat})';
|
autoLabel = '$autoLabel (${ffi.qualityMonitorModel.data.codecFormat})';
|
||||||
}
|
}
|
||||||
return [
|
return [
|
||||||
@ -380,7 +381,6 @@ Future<List<TToggleMenu>> toolbarCursor(
|
|||||||
List<TToggleMenu> v = [];
|
List<TToggleMenu> v = [];
|
||||||
final ffiModel = ffi.ffiModel;
|
final ffiModel = ffi.ffiModel;
|
||||||
final pi = ffiModel.pi;
|
final pi = ffiModel.pi;
|
||||||
final perms = ffiModel.permissions;
|
|
||||||
final sessionId = ffi.sessionId;
|
final sessionId = ffi.sessionId;
|
||||||
|
|
||||||
// show remote cursor
|
// show remote cursor
|
||||||
|
@ -1067,7 +1067,6 @@ class _DisplayMenuState extends State<_DisplayMenu> {
|
|||||||
id: widget.id,
|
id: widget.id,
|
||||||
ffi: widget.ffi,
|
ffi: widget.ffi,
|
||||||
),
|
),
|
||||||
Divider(),
|
|
||||||
cursorToggles(),
|
cursorToggles(),
|
||||||
Divider(),
|
Divider(),
|
||||||
toggles(),
|
toggles(),
|
||||||
@ -1219,14 +1218,16 @@ class _DisplayMenuState extends State<_DisplayMenu> {
|
|||||||
hasData: (data) {
|
hasData: (data) {
|
||||||
final v = data as List<TToggleMenu>;
|
final v = data as List<TToggleMenu>;
|
||||||
if (v.isEmpty) return Offstage();
|
if (v.isEmpty) return Offstage();
|
||||||
return Column(
|
return Column(children: [
|
||||||
children: v
|
Divider(),
|
||||||
.map((e) => CkbMenuButton(
|
...v
|
||||||
value: e.value,
|
.map((e) => CkbMenuButton(
|
||||||
onChanged: e.onChanged,
|
value: e.value,
|
||||||
child: e.child,
|
onChanged: e.onChanged,
|
||||||
ffi: ffi))
|
child: e.child,
|
||||||
.toList());
|
ffi: ffi))
|
||||||
|
.toList(),
|
||||||
|
]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user