Skip to content

Commit

Permalink
- simpler code
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Oct 23, 2013
1 parent cd1564c commit d27addc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/modules/StorageProposal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5951,6 +5951,7 @@ def get_inst_prop(target)
deep_copy(ret)
end


def SaveHeight
display_info = UI.GetDisplayInfo
ret = false
Expand All @@ -5961,12 +5962,10 @@ def SaveHeight
ret
end


def AddCommonWidgets
vb = VBox()
space = 0.5
if SaveHeight()
space = Convert.convert(0, :from => "integer", :to => "float")
end
space = SaveHeight() ? 0.0 : 0.5
vb = Builtins.add(
vb,
Left(
Expand Down

0 comments on commit d27addc

Please sign in to comment.