forward declare Updater

This commit is contained in:
2023-01-02 12:05:20 +01:00
parent 8949c37891
commit 386ea5b6ad
2 changed files with 30 additions and 19 deletions

View File

@@ -2,21 +2,28 @@
#include "GuiWidget.h"
#include "updater/Updater.h"
#include <future>
#include <memory>
namespace td {
namespace utils {
class Updater;
} // namespace utils
namespace gui {
class UpdateMenu : public GuiWidget {
private:
bool m_Opened;
std::string m_Error;
utils::Updater m_Updater;
std::unique_ptr<utils::Updater> m_Updater;
std::shared_future<bool> m_UpdateAvailable;
public:
UpdateMenu(client::Client* client);
virtual ~UpdateMenu();
virtual void Render();
private: