replace file chooser with native

also remove clipboard since it was just a workaround and i dont want to maintain it
This commit is contained in:
ouwou
2022-04-06 21:07:45 -04:00
parent 56a74fb5dd
commit 57e95c8969
4 changed files with 16 additions and 59 deletions

View File

@@ -119,7 +119,7 @@ void GuildData::update_from_json(const nlohmann::json &j) {
JS_RD("approximate_presence_count", ApproximatePresenceCount);
}
bool GuildData::HasFeature(const std::string &search_feature) {
bool GuildData::HasFeature(const std::string &search_feature) const {
if (!Features.has_value()) return false;
for (const auto &feature : *Features)
if (search_feature == feature)