qasim-gui: minor code cleanup.
This commit is contained in:
parent
f1c275ea33
commit
6a44ae66e5
1 changed files with 4 additions and 5 deletions
|
@ -97,11 +97,10 @@ module Qasim
|
||||||
def action_trigger_map_item map, item
|
def action_trigger_map_item map, item
|
||||||
@connect_error[map.path] = Set.new
|
@connect_error[map.path] = Set.new
|
||||||
@connect_running[map.path] = 0
|
@connect_running[map.path] = 0
|
||||||
if map.connected? then
|
method = if map.connected? then :disconnect
|
||||||
method = :disconnect
|
else :connect
|
||||||
else
|
|
||||||
method = :connect
|
|
||||||
end
|
end
|
||||||
|
|
||||||
begin
|
begin
|
||||||
map.send(method) do |linkname,cmd,cmd_args|
|
map.send(method) do |linkname,cmd,cmd_args|
|
||||||
process = Qt::Process.new
|
process = Qt::Process.new
|
||||||
|
|
Loading…
Reference in a new issue