Don't define HomeView member functions needed for updater if ENABLE_UPDATER isn't defined (fix #624)

This commit is contained in:
David Capello 2015-04-23 19:05:11 -03:00
parent 2ea7ac6fbc
commit 5ced5b2ee6

View File

@ -126,6 +126,8 @@ void HomeView::onResize(ui::ResizeEvent& ev)
ui::VBox::onResize(ev); ui::VBox::onResize(ev);
} }
#ifdef ENABLE_UPDATER
void HomeView::onCheckingUpdates() void HomeView::onCheckingUpdates()
{ {
checkUpdate()->setText("Checking Updates..."); checkUpdate()->setText("Checking Updates...");
@ -162,6 +164,8 @@ void HomeView::onNewUpdate(const std::string& url, const std::string& version)
layout(); layout();
} }
#endif // ENABLE_UPDATER
void HomeView::onRecoverSprites() void HomeView::onRecoverSprites()
{ {
if (!m_dataRecoveryView) if (!m_dataRecoveryView)