From 6d82479fe5e3b1a95b0053314bb5c9120fe37862 Mon Sep 17 00:00:00 2001 From: raven02 Date: Sat, 15 Jun 2013 14:30:34 +0800 Subject: [PATCH] Only display "download atrac3+ plugin" when it is not installed. --- UI/MenuScreens.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/MenuScreens.cpp b/UI/MenuScreens.cpp index 5224a0938..8c888c2f1 100644 --- a/UI/MenuScreens.cpp +++ b/UI/MenuScreens.cpp @@ -700,7 +700,7 @@ void AudioScreen::render() { #if (defined(_WIN32) && (defined(_M_IX86) || defined(_M_X64))) || defined(ARMEABI) || defined(ARMEABI_V7A) VLinear vlinear(30, 300, 20); - if (UIButton(GEN_ID, vlinear, 400, 0, a->T("Download Atrac3+ plugin"), ALIGN_LEFT)) { + if (!Atrac3plus_Decoder::IsInstalled() && UIButton(GEN_ID, vlinear, 400, 0, a->T("Download Atrac3+ plugin"), ALIGN_LEFT)) { screenManager()->push(new PluginScreen()); }