mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-15 16:52:34 +00:00
Drafted async-http downloader, fixed not correctly fetching icons at startup
This commit is contained in:
@@ -134,9 +134,10 @@ class W3DHub
|
||||
|
||||
regenerate = false
|
||||
|
||||
if File.exist?(path)
|
||||
regenerate = Digest::SHA256.new.hexdigest(File.binread(path)).upcase != package.checksum.upcase
|
||||
regenerate ||= !File.exist?(generated_icon_path)
|
||||
broken_or_out_dated_icon = Digest::SHA256.new.hexdigest(File.binread(path)).upcase != package.checksum.upcase if File.exist?(path)
|
||||
|
||||
if File.exist?(path) && !broken_or_out_dated_icon
|
||||
regenerate = !File.exist?(generated_icon_path)
|
||||
else
|
||||
Cache.fetch_package(package, proc {})
|
||||
regenerate = true
|
||||
|
||||
Reference in New Issue
Block a user