mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-30 17:19:03 +08:00
fix wrong display of custom clients when approval mode is not set (#9779)
when approve-mode is not set, the approve mode option shows as password, it's `both` approve mode in rust, so only ui is wrong. Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
parent
415d2c5c60
commit
ce7867c1c0
@ -1029,7 +1029,9 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin {
|
|||||||
translate('Accept sessions via both'),
|
translate('Accept sessions via both'),
|
||||||
];
|
];
|
||||||
var modeInitialKey = model.approveMode;
|
var modeInitialKey = model.approveMode;
|
||||||
if (!modeKeys.contains(modeInitialKey)) modeInitialKey = '';
|
if (!modeKeys.contains(modeInitialKey)) {
|
||||||
|
modeInitialKey = defaultOptionApproveMode;
|
||||||
|
}
|
||||||
final usePassword = model.approveMode != 'click';
|
final usePassword = model.approveMode != 'click';
|
||||||
|
|
||||||
final isApproveModeFixed = isOptionFixed(kOptionApproveMode);
|
final isApproveModeFixed = isOptionFixed(kOptionApproveMode);
|
||||||
|
Loading…
Reference in New Issue
Block a user