refresh on all

This commit is contained in:
open-trade
2020-11-27 17:34:09 +08:00
parent e881f6ca29
commit 7662ab0a0f
2 changed files with 15 additions and 4 deletions

View File

@@ -721,10 +721,16 @@ void showActions(BuildContext context) {
context: context,
position: RelativeRect.fromLTRB(x, y, x, y),
items: [
PopupMenuItem<String>(
child: Text('Insert Ctrl + Alt + Del'), value: 'cad'),
PopupMenuItem<String>(child: Text('Insert Lock'), value: 'lock'),
],
PopupMenuItem<String>(
child: Text('Insert Ctrl + Alt + Del'), value: 'cad'),
PopupMenuItem<String>(
child: Text('Insert Lock'), value: 'lock'),
] +
FFI.ffiModel.pi.version.isEmpty
? []
: [
PopupMenuItem<String>(child: Text('Refresh'), value: 'refresh'),
],
elevation: 8,
);
if (value == 'cad') {
@@ -733,5 +739,8 @@ void showActions(BuildContext context) {
if (value == 'lock') {
FFI.setByName('lock_screen');
}
if (value == 'refresh') {
FFI.setByName('refresh');
}
}();
}