aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer Williams <spnw@plexwave.org>2024-04-06 17:46:10 -0400
committerSpencer Williams <spnw@plexwave.org>2024-04-06 17:46:10 -0400
commit2fcdff498ad01421e89e35a8971af326d63aab4d (patch)
tree4a48c1d2e3442ee848f0d77f6d7310481fcdda47
parent092d5ed78fe172a700d91cd051a0ca33dc530126 (diff)
Fix menu selection loss on Sonomav0.1.1
-rw-r--r--mpc-bar.m10
1 files changed, 2 insertions, 8 deletions
diff --git a/mpc-bar.m b/mpc-bar.m
index f319441..8c699fd 100644
--- a/mpc-bar.m
+++ b/mpc-bar.m
@@ -8,7 +8,7 @@
#include <stdlib.h>
#include <string.h>
-#define VERSION "0.1"
+#define VERSION "0.1.1"
#define TITLE_MAX_LENGTH 96
#define SLEEP_INTERVAL 0.2
@@ -117,13 +117,6 @@ static NSString *formatTime(unsigned int t) {
struct mpd_song *song = NULL;
NSString *errorMsg = nil;
- [playPauseItem setEnabled:NO];
- [stopItem setEnabled:NO];
- [nextItem setEnabled:NO];
- [previousItem setEnabled:NO];
- [singleItem setEnabled:NO];
- [updateDatabaseItem setEnabled:YES];
-
NSMutableString *output = [NSMutableString new];
status = mpd_run_status(connection);
@@ -220,6 +213,7 @@ static NSString *formatTime(unsigned int t) {
[singleItem setEnabled:(active && (song_pos < queue_length))];
[clearItem setEnabled:(queue_length > 0)];
+ [updateDatabaseItem setEnabled:YES];
cleanup:
if (song)