diff --git a/Persephone.xcodeproj/project.pbxproj b/Persephone.xcodeproj/project.pbxproj index 894a054..1b27dcd 100644 --- a/Persephone.xcodeproj/project.pbxproj +++ b/Persephone.xcodeproj/project.pbxproj @@ -1188,7 +1188,7 @@ "$(inherited)", "$(PROJECT_DIR)/libmpdclient/output", ); - MARKETING_VERSION = "0.15.0-alpha"; + MARKETING_VERSION = "0.15.1-alpha"; PRODUCT_BUNDLE_IDENTIFIER = me.danbarber.Persephone; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1205,7 +1205,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - DEVELOPMENT_TEAM = 8E7TQ638ZD; + DEVELOPMENT_TEAM = 54DPC63K8R; ENABLE_HARDENED_RUNTIME = YES; FRAMEWORK_SEARCH_PATHS = "$(inherited)"; INFOPLIST_FILE = Persephone/Info.plist; @@ -1217,7 +1217,7 @@ "$(inherited)", "$(PROJECT_DIR)/libmpdclient/output", ); - MARKETING_VERSION = "0.15.0-alpha"; + MARKETING_VERSION = "0.15.1-alpha"; PRODUCT_BUNDLE_IDENTIFIER = me.danbarber.Persephone; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/Persephone/Components/Browser/Album Browser/AlbumViewItem.swift b/Persephone/Components/Browser/Album Browser/AlbumViewItem.swift index c1cf92d..bb3e649 100644 --- a/Persephone/Components/Browser/Album Browser/AlbumViewItem.swift +++ b/Persephone/Components/Browser/Album Browser/AlbumViewItem.swift @@ -107,4 +107,18 @@ class AlbumViewItem: NSCollectionViewItem { @IBOutlet var albumCoverView: NSButton! @IBOutlet var albumTitle: NSTextField! @IBOutlet var albumArtist: NSTextField! + + @IBAction func playAlbumMenuAction(_ sender: NSMenuItem) { + guard let album = album else { return } + + App.mpdClient.playAlbum(album.mpdAlbum) + } + + @IBAction func addAlbumToQueueMenuAction(_ sender: NSMenuItem) { + guard let album = album else { return } + + let queueLength = App.store.state.queueState.queue.count + + App.mpdClient.addAlbumToQueue(album: album.mpdAlbum, at: queueLength) + } } diff --git a/Persephone/Components/Browser/Album Browser/AlbumViewItem.xib b/Persephone/Components/Browser/Album Browser/AlbumViewItem.xib index ed5cb9c..a42ccb6 100644 --- a/Persephone/Components/Browser/Album Browser/AlbumViewItem.xib +++ b/Persephone/Components/Browser/Album Browser/AlbumViewItem.xib @@ -1,8 +1,8 @@ - + - + @@ -35,10 +35,11 @@ - + + @@ -53,7 +54,7 @@ - + @@ -61,7 +62,7 @@ - + @@ -83,6 +84,23 @@ + + + + + + + + + + + + + + + + + diff --git a/Persephone/Components/Window/Base.lproj/Main.storyboard b/Persephone/Components/Window/Base.lproj/Main.storyboard index acb6a1c..45e523c 100644 --- a/Persephone/Components/Window/Base.lproj/Main.storyboard +++ b/Persephone/Components/Window/Base.lproj/Main.storyboard @@ -666,7 +666,7 @@ - + @@ -712,7 +712,7 @@ - + @@ -730,7 +730,7 @@ - + @@ -761,7 +761,7 @@ - + @@ -892,7 +892,6 @@ - @@ -920,16 +919,6 @@ - - - - - - - - - -