mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-17 07:21:29 +03:00
replace offstage with if-else for LinearProgressIndicator in dialog
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -223,9 +223,8 @@ void showServerSettingsWithValue(
|
||||
labelText: 'Key',
|
||||
),
|
||||
),
|
||||
Offstage(
|
||||
offstage: !isInProgress,
|
||||
child: LinearProgressIndicator())
|
||||
// NOT use Offstage to wrap LinearProgressIndicator
|
||||
if (isInProgress) const LinearProgressIndicator(),
|
||||
])),
|
||||
actions: [
|
||||
dialogButton('Cancel', onPressed: () {
|
||||
|
||||
Reference in New Issue
Block a user