mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 08:22:16 +03:00
Make sure the save button is disabled when no usb application is selected
This commit is contained in:
parent
8f932b3af0
commit
e75793ae30
@ -250,10 +250,11 @@ class _ManagementScreenState extends ConsumerState<ManagementScreen> {
|
||||
data: (info) {
|
||||
bool hasConfig = info.version.major > 4;
|
||||
if (hasConfig) {
|
||||
canSave = !_mapEquals(
|
||||
_enabled,
|
||||
info.config.enabledCapabilities,
|
||||
);
|
||||
canSave = _enabled[Transport.usb] != 0 &&
|
||||
!_mapEquals(
|
||||
_enabled,
|
||||
info.config.enabledCapabilities,
|
||||
);
|
||||
} else {
|
||||
canSave = _interfaces != 0 &&
|
||||
_interfaces !=
|
||||
|
Loading…
Reference in New Issue
Block a user