mute
This commit is contained in:
parent
6a5454f72a
commit
d57a0c85d8
@ -642,9 +642,20 @@ void showOptions(BuildContext context) {
|
|||||||
)));
|
)));
|
||||||
displays.add(Divider(color: MyTheme.border));
|
displays.add(Divider(color: MyTheme.border));
|
||||||
}
|
}
|
||||||
showAlertDialog(
|
showAlertDialog(context, (setState) {
|
||||||
context,
|
final more = [];
|
||||||
(setState) => Tuple3(
|
if (FFI.ffiModel.permissions['audio'] != false) {
|
||||||
|
more.add(CheckboxListTile(
|
||||||
|
value: FFI.getByName('toggle_option', 'disable-audio') == 'true',
|
||||||
|
onChanged: (v) {
|
||||||
|
setState(() {
|
||||||
|
lockAfterSessionEnd = v;
|
||||||
|
FFI.setByName('toggle_option', 'disable-audio');
|
||||||
|
});
|
||||||
|
},
|
||||||
|
title: Text('Mute')));
|
||||||
|
}
|
||||||
|
return Tuple3(
|
||||||
null,
|
null,
|
||||||
Column(
|
Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
@ -692,8 +703,7 @@ void showOptions(BuildContext context) {
|
|||||||
onChanged: (v) {
|
onChanged: (v) {
|
||||||
setState(() {
|
setState(() {
|
||||||
showRemoteCursor = v;
|
showRemoteCursor = v;
|
||||||
FFI.setByName(
|
FFI.setByName('toggle_option', 'show-remote-cursor');
|
||||||
'toggle_option', 'show-remote-cursor');
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
title: Text('Show remote cursor')),
|
title: Text('Show remote cursor')),
|
||||||
@ -707,18 +717,17 @@ void showOptions(BuildContext context) {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
title: Text('Lock after session end'))
|
title: Text('Lock after session end'))
|
||||||
]),
|
] +
|
||||||
null),
|
more),
|
||||||
() async => true,
|
null);
|
||||||
true,
|
}, () async => true, true, 0);
|
||||||
0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void showActions(BuildContext context) {
|
void showActions(BuildContext context) {
|
||||||
final size = MediaQuery.of(context).size;
|
final size = MediaQuery.of(context).size;
|
||||||
final x = 120.0;
|
final x = 120.0;
|
||||||
final y = size.height;
|
final y = size.height;
|
||||||
var more = <Widget>[];
|
final more = <Widget>[];
|
||||||
if (FFI.ffiModel.pi.version.isNotEmpty) {
|
if (FFI.ffiModel.pi.version.isNotEmpty) {
|
||||||
more.add(PopupMenuItem<String>(child: Text('Refresh'), value: 'refresh'));
|
more.add(PopupMenuItem<String>(child: Text('Refresh'), value: 'refresh'));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user