Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
OmgRod committed Jan 24, 2025
1 parent acf808a commit 35586ba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/layers/GYScreenshotPopup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class GYScreenshotPopup : public geode::Popup<int const&> {
m_mainLayer->setContentSize({ winSize.width * 0.6f, winSize.height * 0.7f });
m_mainLayer->updateLayout();

// Construct URL for the raw GitHub image
std::string URL = fmt::format("https://raw.githubusercontent.com/OmgRod/Geodify/master/previews/{}Preview.png", layerName);

auto req = web::WebRequest();
Expand Down Expand Up @@ -85,7 +84,6 @@ class GYScreenshotPopup : public geode::Popup<int const&> {
}

void onDownloadFail() {
// Handle failure if the image could not be downloaded
CCSprite* fallbackSprite = CCSprite::create("noPreview.png"_spr);
m_mainLayer->addChildAtPosition(fallbackSprite, Anchor::Center);
}
Expand Down

0 comments on commit 35586ba

Please sign in to comment.