Skip to content

Commit

Permalink
• minor code simplications
Browse files Browse the repository at this point in the history
• add scroll bar to description view in Leopard NIB

git-svn-id: http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle@11024 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
bibiko committed Dec 16, 2008
1 parent 3580b92 commit eaac7b0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions Support/getBundles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ def getLocalStatus(aBundle)
updatedStr = "" # for searching
status = ""
deleteBtn = "0"
deleteBtnEnabled = "0"
deleteBtnEnabled = false
canBeOpened = 0
locCom = ""
deleteButtonLabel = ""
Expand All @@ -1171,12 +1171,12 @@ def getLocalStatus(aBundle)
deleteBtn = "1"
canBeOpened = 1
if $localBundles[aBundle['uuid']]['scm'].empty? && $localBundles[aBundle['uuid']]['deleted'].empty? && $localBundles[aBundle['uuid']]['location'] =~ /Pristine/
deleteBtnEnabled = "1"
deleteBtnEnabled = true
deleteButtonLabel = "Delete"
end
if ! $localBundles[aBundle['uuid']]['deleted'].empty? || ! $localBundles[aBundle['uuid']]['disabled'].empty?
deleteBtn = "0"
deleteBtnEnabled = "1"
deleteBtnEnabled = true
deleteButtonLabel = ($localBundles[aBundle['uuid']]['deleted'].empty?) ? "Enable" : "Undelete"
end

Expand Down Expand Up @@ -1868,7 +1868,7 @@ def enableBundle(aBundle,path)
b = $dataarray[path.to_i]
b['deleteButtonEnabled'] = ($localBundles[b['uuid']]['scm'].empty? && $localBundles[b['uuid']]['location'] =~ /Pristine/) ? "1" : "0"
b['deleteButton'] = "1"
b['deleteButtonLabel'] = "Delete" if b['deleteButtonEnabled'] == "1"
b['deleteButtonLabel'] = "Delete" if b['deleteButtonEnabled']
b['locCom'].gsub!($localBundles[b['uuid']]['disabled'],"")
$localBundles[b['uuid']]['disabled'] = ""
$params['dataarray'] = $dataarray
Expand All @@ -1886,7 +1886,7 @@ def unDeleteBundle(aBundle,path)
b = $dataarray[path.to_i]
b['deleteButtonEnabled'] = ($localBundles[b['uuid']]['scm'].empty? && $localBundles[b['uuid']]['location'] =~ /Pristine/) ? "1" : "0"
b['deleteButton'] = "1"
b['deleteButtonLabel'] = "Delete" if b['deleteButtonEnabled'] == "1"
b['deleteButtonLabel'] = "Delete" if b['deleteButtonEnabled']
b['locCom'].gsub!($localBundles[b['uuid']]['deleted'],"")
$localBundles[b['uuid']]['deleted'] = ""
$params['dataarray'] = $dataarray
Expand Down
22 changes: 11 additions & 11 deletions Support/nibs/BundlesTree.nib/classes.nib

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Support/nibs/BundlesTree.nib/info.nib

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Support/nibs/BundlesTree.nib/keyedobjects.nib
Binary file not shown.

0 comments on commit eaac7b0

Please sign in to comment.