mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
impr: Code style improvements
This commit is contained in:
@@ -59,16 +59,6 @@ namespace hex::plugin::builtin {
|
||||
[[nodiscard]] ImVec2 getMaxSize() const override { return scaled({ 900, 700 }); }
|
||||
|
||||
private:
|
||||
HttpRequest m_httpRequest = HttpRequest("GET", "");
|
||||
std::future<HttpRequest::Result<std::string>> m_apiRequest;
|
||||
std::future<HttpRequest::Result<std::string>> m_download;
|
||||
std::fs::path m_downloadPath;
|
||||
RequestStatus m_requestStatus = RequestStatus::NotAttempted;
|
||||
|
||||
std::vector<StoreCategory> m_categories;
|
||||
TaskHolder m_updateAllTask;
|
||||
std::atomic<u32> m_updateCount = 0;
|
||||
|
||||
void drawStore();
|
||||
void drawTab(StoreCategory &category);
|
||||
void handleDownloadFinished(const StoreCategory &category, StoreEntry &entry);
|
||||
@@ -80,6 +70,17 @@ namespace hex::plugin::builtin {
|
||||
|
||||
bool download(fs::ImHexPath pathType, const std::string &fileName, const std::string &url, bool update);
|
||||
bool remove(fs::ImHexPath pathType, const std::string &fileName);
|
||||
|
||||
private:
|
||||
HttpRequest m_httpRequest = HttpRequest("GET", "");
|
||||
std::future<HttpRequest::Result<std::string>> m_apiRequest;
|
||||
std::future<HttpRequest::Result<std::string>> m_download;
|
||||
std::fs::path m_downloadPath;
|
||||
RequestStatus m_requestStatus = RequestStatus::NotAttempted;
|
||||
|
||||
std::vector<StoreCategory> m_categories;
|
||||
TaskHolder m_updateAllTask;
|
||||
std::atomic<u32> m_updateCount = 0;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user