Permalink
Browse files

if without deploy config, dont show deploy menuitem

  • Loading branch information...
1 parent fe0999f commit 0d6f3a7ffa6a412ba6e72aa1d882bed681fec900 @tka tka committed Feb 18, 2013
Showing with 13 additions and 9 deletions.
  1. +2 −2 src/compile_version.rb
  2. +11 −7 src/ui/tray.rb
View
@@ -1,5 +1,5 @@
module CompileVersion
- REVISION = '1fb327bef7'
- COMPILE_TIME = '201302050739'
+ REVISION = 'fe0999f423'
+ COMPILE_TIME = '201302180708'
UPDATE_URL = ''
end
View
@@ -653,14 +653,18 @@ def watch(dir)
Swt::SWT::PUSH,
@menu,
@menu.indexOf(@clean_item) +1 )
- @deploy_project_item = add_menu_item( "Deploy Project",
- deploy_project_handler,
- Swt::SWT::PUSH,
- @menu,
- @menu.indexOf(@build_project_item) +1 )
+ last_item = @build_project_item
+ if Compass.configuration.the_hold_options
+ @deploy_project_item = add_menu_item( "Deploy Project",
+ deploy_project_handler,
+ Swt::SWT::PUSH,
+ @menu,
+ @menu.indexOf(@build_project_item) +1 )
+ last_item = @deploy_project_item
+ end
- if @menu.items[ @menu.indexOf(@deploy_project_item)+1 ].getStyle != Swt::SWT::SEPARATOR
- add_menu_separator(@menu, @menu.indexOf(@deploy_project_item) + 1 )
+ if @menu.items[ @menu.indexOf(last_item)+1 ].getStyle != Swt::SWT::SEPARATOR
+ add_menu_separator(@menu, @menu.indexOf(last_item) + 1 )
end
if App::CONFIG['services'].include?( :http )
@simplehttpserver_thread = Thread.new do

0 comments on commit 0d6f3a7

Please sign in to comment.