Compare commits
4 Commits
dev-c3a7d1
...
dev-ab1c6c
Author | SHA1 | Date | |
---|---|---|---|
ab1c6c4749 | |||
06d7148408 | |||
33875cb58b | |||
07070dd2d4 |
3
external/sdl/CMakeLists.txt
vendored
3
external/sdl/CMakeLists.txt
vendored
@ -9,7 +9,8 @@ if (NOT TARGET SDL3::SDL3)
|
|||||||
|
|
||||||
FetchContent_Declare(SDL3
|
FetchContent_Declare(SDL3
|
||||||
GIT_REPOSITORY https://github.com/libsdl-org/SDL
|
GIT_REPOSITORY https://github.com/libsdl-org/SDL
|
||||||
GIT_TAG 0429f5d6a36fc35b551bcc2acd4a40c2db6dab82 # tip when looking
|
#GIT_TAG 0429f5d6a36fc35b551bcc2acd4a40c2db6dab82 # tip when looking
|
||||||
|
GIT_TAG 14f584a94bfd49cf1524db75bf3c419fdf9436cd # tip 26-04-2024
|
||||||
FIND_PACKAGE_ARGS # for the future
|
FIND_PACKAGE_ARGS # for the future
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(SDL3)
|
FetchContent_MakeAvailable(SDL3)
|
||||||
|
4
external/toxcore/CMakeLists.txt
vendored
4
external/toxcore/CMakeLists.txt
vendored
@ -12,7 +12,11 @@ add_subdirectory(./c-toxcore)
|
|||||||
# the sad case
|
# the sad case
|
||||||
add_library(toxcore INTERFACE)
|
add_library(toxcore INTERFACE)
|
||||||
|
|
||||||
|
if (TARGET toxcore_static)
|
||||||
target_link_libraries(toxcore INTERFACE toxcore_static)
|
target_link_libraries(toxcore INTERFACE toxcore_static)
|
||||||
|
else()
|
||||||
|
target_link_libraries(toxcore INTERFACE toxcore_shared)
|
||||||
|
endif()
|
||||||
|
|
||||||
# HACK: "install" api headers into binary dir
|
# HACK: "install" api headers into binary dir
|
||||||
configure_file(
|
configure_file(
|
||||||
|
8
flake.lock
generated
8
flake.lock
generated
@ -63,17 +63,17 @@
|
|||||||
"sdl3": {
|
"sdl3": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1713196978,
|
"lastModified": 1714100414,
|
||||||
"narHash": "sha256-qn6YChphDi2p1GRwAEno6QI1rDNEmly+tElzDJnOcvg=",
|
"narHash": "sha256-eaiVG5WJoLnFvdpYBR+DF+YuMu5C3lA1SKuzN8+hfDM=",
|
||||||
"owner": "libsdl-org",
|
"owner": "libsdl-org",
|
||||||
"repo": "SDL",
|
"repo": "SDL",
|
||||||
"rev": "0429f5d6a36fc35b551bcc2acd4a40c2db6dab82",
|
"rev": "14f584a94bfd49cf1524db75bf3c419fdf9436cd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "libsdl-org",
|
"owner": "libsdl-org",
|
||||||
"repo": "SDL",
|
"repo": "SDL",
|
||||||
"rev": "0429f5d6a36fc35b551bcc2acd4a40c2db6dab82",
|
"rev": "14f584a94bfd49cf1524db75bf3c419fdf9436cd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
sdl3 = {
|
sdl3 = {
|
||||||
url = "github:libsdl-org/SDL/0429f5d6a36fc35b551bcc2acd4a40c2db6dab82"; # keep in sync this cmake
|
url = "github:libsdl-org/SDL/14f584a94bfd49cf1524db75bf3c419fdf9436cd"; # keep in sync this cmake
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
sdl3_image = {
|
sdl3_image = {
|
||||||
|
@ -871,10 +871,15 @@ void ChatGui4::renderMessageBodyFile(Message3Registry& reg, const Message3 e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ImGui::BeginPopup("forward to contact")) {
|
if (ImGui::BeginPopup("forward to contact")) {
|
||||||
// TODO: make exclusion work
|
|
||||||
//for (const auto& c : _cr.view<entt::get_t<Contact::Components::TagBig>, entt::exclude_t<Contact::Components::RequestIncoming, Contact::Components::TagRequestOutgoing>>()) {
|
|
||||||
for (const auto& c : _cr.view<Contact::Components::TagBig>()) {
|
for (const auto& c : _cr.view<Contact::Components::TagBig>()) {
|
||||||
if (renderContactListContactSmall(c, false)) {
|
// filter
|
||||||
|
if (_cr.any_of<Contact::Components::RequestIncoming, Contact::Components::TagRequestOutgoing>(c)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
// TODO: check for contact capability
|
||||||
|
|
||||||
|
if (renderContactBig(_theme, _contact_tc, {_cr, c}, 1, false, true, false)) {
|
||||||
|
//if (renderContactListContactSmall(c, false)) {
|
||||||
//_rmm.sendFilePath(*_selected_contact, path.filename().generic_u8string(), path.generic_u8string());
|
//_rmm.sendFilePath(*_selected_contact, path.filename().generic_u8string(), path.generic_u8string());
|
||||||
const auto& fil = reg.get<Message::Components::Transfer::FileInfoLocal>(e);
|
const auto& fil = reg.get<Message::Components::Transfer::FileInfoLocal>(e);
|
||||||
for (const auto& path : fil.file_list) {
|
for (const auto& path : fil.file_list) {
|
||||||
|
Reference in New Issue
Block a user