Compare commits
2 Commits
5708a83ba6
...
f97134b841
Author | SHA1 | Date | |
---|---|---|---|
|
f97134b841 | ||
|
8777539c2c |
4
.github/workflows/cd.yml
vendored
4
.github/workflows/cd.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
||||
run: sudo apt update && sudo apt -y install libsodium-dev cmake libvpx-dev libopus-dev
|
||||
|
||||
- name: Configure CMake
|
||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DTOMATO_BREAKPAD=ON -DTOMATO_TOX_AV=ON
|
||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DTOMATO_BREAKPAD=ON -DTOMATO_TOX_AV=ON -DCMAKE_EXE_LINKER_FLAGS=-gz
|
||||
|
||||
- name: Build
|
||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4 -t tomato
|
||||
@ -103,7 +103,7 @@ jobs:
|
||||
- name: Configure CMake
|
||||
env:
|
||||
ANDROID_NDK_HOME: ${{steps.setup_ndk.outputs.ndk-path}}
|
||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=${{matrix.platform.vcpkg_toolkit}} -DANDROID=1 -DANDROID_PLATFORM=23 -DANDROID_ABI=${{matrix.platform.ndk_abi}} -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=${{steps.setup_ndk.outputs.ndk-path}}/build/cmake/android.toolchain.cmake -DSDLIMAGE_JPG_SHARED=OFF -DSDLIMAGE_PNG_SHARED=OFF -DTOMATO_MAIN_SO=ON -DTOMATO_TOX_AV=ON
|
||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=${{matrix.platform.vcpkg_toolkit}} -DANDROID=1 -DANDROID_PLATFORM=23 -DANDROID_ABI=${{matrix.platform.ndk_abi}} -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=${{steps.setup_ndk.outputs.ndk-path}}/build/cmake/android.toolchain.cmake -DSDLIMAGE_JPG_SHARED=OFF -DSDLIMAGE_PNG_SHARED=OFF -DTOMATO_MAIN_SO=ON -DTOMATO_TOX_AV=ON -DCMAKE_EXE_LINKER_FLAGS=-gz
|
||||
|
||||
- name: Build (tomato)
|
||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 4 -t tomato
|
||||
|
@ -1345,6 +1345,45 @@ void ChatGui4::renderMessageBodyFile(Message3Registry& reg, const Message3 e) {
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
// TODO: better way to dif up/down
|
||||
if (!o.all_of<ObjComp::F::TagLocalHaveAll>()) {
|
||||
if (ImGui::BeginMenu("dowload priority")) {
|
||||
using Priority = ObjComp::Ephemeral::File::DownloadPriority::Priority;
|
||||
auto& p_comp = o.get_or_emplace<ObjComp::Ephemeral::File::DownloadPriority>();
|
||||
|
||||
bool updated {false};
|
||||
if (ImGui::MenuItem("highest", nullptr, p_comp.p == Priority::HIGHEST)) {
|
||||
p_comp.p = Priority::HIGHEST;
|
||||
updated = true;
|
||||
}
|
||||
if (ImGui::MenuItem("high", nullptr, p_comp.p == Priority::HIGH)) {
|
||||
p_comp.p = Priority::HIGH;
|
||||
updated = true;
|
||||
}
|
||||
if (ImGui::MenuItem("normal", nullptr, p_comp.p == Priority::NORMAL)) {
|
||||
p_comp.p = Priority::NORMAL;
|
||||
updated = true;
|
||||
}
|
||||
if (ImGui::MenuItem("low", nullptr, p_comp.p == Priority::LOW)) {
|
||||
p_comp.p = Priority::LOW;
|
||||
updated = true;
|
||||
}
|
||||
if (ImGui::MenuItem("lowest", nullptr, p_comp.p == Priority::LOWEST)) {
|
||||
p_comp.p = Priority::LOWEST;
|
||||
updated = true;
|
||||
}
|
||||
|
||||
if (updated) {
|
||||
std::cout << "CG: updated download priority to " << int(p_comp.p) << "\n";
|
||||
// TODO: dont do it here
|
||||
_os.throwEventUpdate(o);
|
||||
}
|
||||
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
ImGui::Separator();
|
||||
}
|
||||
|
||||
if (ImGui::BeginMenu("forward", o.all_of<ObjComp::F::TagLocalHaveAll>())) {
|
||||
for (const auto& c : _cr.view<Contact::Components::TagBig>()) {
|
||||
// filter
|
||||
|
Loading…
Reference in New Issue
Block a user