mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-16 04:20:30 +00:00
Reduce time to minimum time
This commit is contained in:
parent
858f3ff423
commit
7f09e614d2
2 changed files with 4 additions and 5 deletions
|
|
@ -215,10 +215,10 @@ struct SettingsView: View {
|
|||
importProgress = 0.0
|
||||
}
|
||||
|
||||
let progressTimer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { timer in
|
||||
let progressTimer = Timer.scheduledTimer(withTimeInterval: 0.05, repeats: true) { timer in
|
||||
DispatchQueue.main.async {
|
||||
if importProgress < 1.0 {
|
||||
importProgress += 0.05
|
||||
importProgress += 0.25
|
||||
} else {
|
||||
timer.invalidate()
|
||||
isImportingFile = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue