From d01b0ea6a62a3bfdb10f82af52920856cb4a73fc Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Wed, 26 Jun 2013 21:26:44 +0200 Subject: [PATCH] Hide the plugin download button on the main menu after downloading it. --- UI/MenuScreens.cpp | 5 +++++ UI/MenuScreens.h | 1 + 2 files changed, 6 insertions(+) diff --git a/UI/MenuScreens.cpp b/UI/MenuScreens.cpp index e335865ace..73f23946bd 100644 --- a/UI/MenuScreens.cpp +++ b/UI/MenuScreens.cpp @@ -188,6 +188,11 @@ MenuScreen::MenuScreen() : frames_(0) { showAtracShortcut_ = g_Config.bFirstRun && !Atrac3plus_Decoder::IsInstalled(); } +void MenuScreen::dialogFinished(const Screen *dialog, DialogResult result) { + showAtracShortcut_ = showAtracShortcut_ && !Atrac3plus_Decoder::IsInstalled(); +} + + void MenuScreen::update(InputState &input_state) { globalUIState = UISTATE_MENU; frames_++; diff --git a/UI/MenuScreens.h b/UI/MenuScreens.h index 519969c71c..52401258e2 100644 --- a/UI/MenuScreens.h +++ b/UI/MenuScreens.h @@ -47,6 +47,7 @@ public: void update(InputState &input); void render(); void sendMessage(const char *message, const char *value); + void dialogFinished(const Screen *dialog, DialogResult result); private: int frames_;