mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 17:22:35 +00:00
Use new marquee style of progress bar for unpacking/patching since we don't have progress feedback
This commit is contained in:
@@ -217,7 +217,15 @@ class W3DHub
|
||||
|
||||
name_.value = operation.label if operation.label
|
||||
status_.value = operation.value if operation.value
|
||||
progress_.value = operation.progress.clamp(0.0, 1.0) if operation.progress
|
||||
|
||||
if operation.progress
|
||||
if operation.progress == Float::INFINITY
|
||||
progress_.type = :marquee unless progress_.type == :marquee
|
||||
else
|
||||
progress_.type = :linear unless progress_.type == :linear
|
||||
progress_.value = operation.progress.clamp(0.0, 1.0)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user