more
This commit is contained in:
parent
8127c8e4d8
commit
0e493c1d53
@ -17,7 +17,7 @@ SYNC_CHECK_TIME = 0.1
|
|||||||
@sync_now = false
|
@sync_now = false
|
||||||
|
|
||||||
def <<(dirs)
|
def <<(dirs)
|
||||||
@queue.update { |q| q += dirs ; q }
|
@queue.update { |q| q += [ dirs ].flatten ; q }
|
||||||
end
|
end
|
||||||
public :<<
|
public :<<
|
||||||
|
|
||||||
@ -29,7 +29,6 @@ def check
|
|||||||
begin
|
begin
|
||||||
if @queue.value.length > 0 || remote_sync_check == 0 || @sync_now
|
if @queue.value.length > 0 || remote_sync_check == 0 || @sync_now
|
||||||
dir = nil
|
dir = nil
|
||||||
@queue.update { |q| ; dir = q.shift ; q }
|
|
||||||
|
|
||||||
@status.text = "Syncing..."
|
@status.text = "Syncing..."
|
||||||
|
|
||||||
@ -50,6 +49,7 @@ def check
|
|||||||
|
|
||||||
remote_sync_check = SYNC_CHECK_COUNT
|
remote_sync_check = SYNC_CHECK_COUNT
|
||||||
@sync_now = false
|
@sync_now = false
|
||||||
|
@queue.update { [] }
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
puts e.message
|
puts e.message
|
||||||
|
Loading…
Reference in New Issue
Block a user