Skip to content

Commit

Permalink
http
Browse files Browse the repository at this point in the history
  • Loading branch information
Augustin-maker committed Apr 5, 2024
1 parent edd9dd1 commit d42798e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/screens/browsemapscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ BrowseMapScreen::BrowseMapScreen(QWidget *parent): QWidget(parent) {
}

void BrowseMapScreen::loadOnlineMaps() {
downloader = new FileDownloader(QUrl("https://snakeqt.denisd3d.fr/maps"), this);
downloader = new FileDownloader(QUrl("http://snakeqt.denisd3d.fr/maps"), this);
connect(downloader, &FileDownloader::downloaded, this, &BrowseMapScreen::onlineMapListDownloaded);
}

Expand All @@ -48,7 +48,7 @@ void BrowseMapScreen::loadClicked() {
if (mapList->currentItem() != nullptr) {
if (!mapList->currentItem()->data(Qt::UserRole).toBool()) {
auto mapName = mapList->currentItem()->text().replace(".skm", "");
downloader = new FileDownloader(QUrl("https://snakeqt.denisd3d.fr/maps/" + mapName),
downloader = new FileDownloader(QUrl("http://snakeqt.denisd3d.fr/maps/" + mapName),
this);
connect(downloader, &FileDownloader::downloaded, [this, mapName]() {
const QDir dir("maps");
Expand Down
1 change: 0 additions & 1 deletion src/screens/gamescreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ void GameScreen::keyPressEvent(QKeyEvent *event) {
}
}


update();
}

Expand Down

0 comments on commit d42798e

Please sign in to comment.