mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-04 00:00:51 -04:00
Move common code to Queue::Downloader
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
class Plugin
|
||||
class Downloader < Queue::Downloader
|
||||
@library_path : String = Config.current.library_path
|
||||
@downloading = false
|
||||
|
||||
def self.default : self
|
||||
unless @@default
|
||||
@@ -11,8 +9,7 @@ class Plugin
|
||||
end
|
||||
|
||||
def initialize
|
||||
@queue = Queue.default
|
||||
@queue << self
|
||||
super
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user