Only display "download atrac3+ plugin" when it is not installed.

This commit is contained in:
raven02 2013-06-15 14:30:34 +08:00
parent de0b94542f
commit 6d82479fe5

View File

@ -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());
}