mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-25 00:00:52 -04:00
Decouple Queue and related classes from MangaDex
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
class Plugin
|
||||
class Downloader < Queue::Downloader
|
||||
@library_path : String = Config.current.library_path
|
||||
@downloading = false
|
||||
|
||||
def self.default : self
|
||||
unless @@default
|
||||
@@default = new
|
||||
end
|
||||
@@default.not_nil!
|
||||
end
|
||||
|
||||
def initialize
|
||||
@queue = Queue.default
|
||||
@queue << self
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user