We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e948ee commit 9012ab3Copy full SHA for 9012ab3
source/gui_main.cpp
@@ -39,9 +39,9 @@ tsl::elm::Element *MainGui::createUI() {
39
auto *button = new tsl::elm::ListItem("Upload");
40
button->setClickListener([&](u64 keys) {
41
if (keys && KEY_A && !this->uploaded) {
42
- this->url = web::UploadImage(this->fileId);
+ std::string url = web::UploadImage(this->fileId);
43
this->uploaded = true;
44
- list->addItem(new tsl::elm::ListItem(url));
+ this->img->setUrl(url);
45
return true;
46
}
47
return false;
source/gui_main.hpp
@@ -23,7 +23,6 @@
23
class MainGui : public tsl::Gui {
24
private:
25
ImageItem *img;
26
- std::string url;
27
bool uploaded = false;
28
CapsAlbumFileId fileId;
29
0 commit comments