Skip to content

Commit

Permalink
Jukebox HUB hides/shows when disconected/connected to jukebox.
Browse files Browse the repository at this point in the history
  • Loading branch information
whomwah committed Jan 29, 2014
1 parent 948bba8 commit 05e8955
Show file tree
Hide file tree
Showing 12 changed files with 1,023 additions and 1,018 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Motion::Project::App.setup do |app|
app.sparkle do
release :base_url, 'https://raw.github.com/kyan/kyan_bar/master'
release :package_url, 'https://github.com/kyan/kyan_bar/releases/download'
release :version, '1.2.3'
release :version, '1.2.4'

# Optional settings
release :feed_filename, 'releases.xml'
Expand Down
10 changes: 7 additions & 3 deletions app/app_delegate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ def build_jukebox_controls
update_jukebox_controls_button_state(NSOnState)
end

def remove_jukebox_controls
@jukebox_controls.close unless @jukebox_controls.nil?
end

def hide_jukebox_controls
update_jukebox_controls_button_state(NSOffState)
@jukebox_controls.close unless @jukebox_controls.nil?
remove_jukebox_controls
end

def show_jukebox_controls
Expand Down Expand Up @@ -112,12 +116,12 @@ def update_jukebox_controls_button_state(state)

def handle_websocket_connection(n)
state = n.userInfo[:state]
puts "Connection: #{state}"

if state == true
show_jukebox_controls
else
hide_jukebox_controls
remove_jukebox_controls
update_status_bar_icon(false)
end
end
end
6 changes: 3 additions & 3 deletions release_notes.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
KyanBar - version 1.2.3
KyanBar - version 1.2.4
-----------------------

Updates:

* Global hotkeys fix
* Smarter statusbar icon (blue when no votes)
* Jukebox HUB hides/shows when disconected/connected to jukebox.
* Compiled against latest version of RubyMotion (performance++)
12 changes: 6 additions & 6 deletions releases.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@
en
</language>
<pubDate>
Mon, 27 Jan 2014 08:32:27 +0000
Wed, 29 Jan 2014 09:11:30 +0000
</pubDate>
<atom:link href='https://raw.github.com/kyan/kyan_bar/master/releases.xml' rel='self' type='application/rss+xml'/>
<item>
<title>
KyanBar 1.2.3
KyanBar 1.2.4
</title>
<pubDate>
Mon, 27 Jan 2014 08:32:27 +0000
Wed, 29 Jan 2014 09:11:30 +0000
</pubDate>
<guid isPermaLink='false'>
KyanBar-1.2.3
KyanBar-1.2.4
</guid>
<sparkle:releaseNotesLink>
https://raw.github.com/kyan/kyan_bar/master/release_notes.html
</sparkle:releaseNotesLink>
<enclosure url='https://github.com/kyan/kyan_bar/releases/download/1.2.3/KyanBar.zip' length='4031787' type='application/octet-stream' sparkle:version='1.2.3' sparkle:dsaSignature='MC0CFHPfH6aK2o4BXYHkU/v3tzbFDrBRAhUAoI6lV+SdCqPgK0ivqrRRxq8tXzI='/>
<enclosure url='https://github.com/kyan/kyan_bar/releases/download/1.2.4/KyanBar.zip' length='4141509' type='application/octet-stream' sparkle:version='1.2.4' sparkle:dsaSignature='MC0CFD87kGkWkmF8RuIK8banmF4PB5hAAhUApOyrXT5bdGppJuGfSAxVO9Lle6E='/>
</item>
</channel>
</rss>
</rss>
2 changes: 1 addition & 1 deletion vendor/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ SPEC CHECKSUMS:
MASShortcut: 6abaedac53a0542f4856f35be4f1f970b652a51e
SocketRocket: 7ac946bcce46287a791dfff3c1f8daa692821dae

COCOAPODS: 0.28.0
COCOAPODS: 0.29.0
2 changes: 1 addition & 1 deletion vendor/Pods/Manifest.lock

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

1 change: 1 addition & 0 deletions vendor/Pods/Pods.xcconfig

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

Loading

0 comments on commit 05e8955

Please sign in to comment.