Move common code to Queue::Downloader

This commit is contained in:
Alex Ling
2020-07-21 12:32:48 +00:00
parent ae7c72ab85
commit b75a838e14
3 changed files with 10 additions and 9 deletions

View File

@@ -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