Add NeoUI passcode configurator, duress mode profile, and Bluetooth OBEX UI

This commit is contained in:
Luxferre committed 2026-10-30 19:28:31 +02:00
1 parent 51a1a91d42
commit 62ac46e498
100 files changed
+2736 -240

No files matched your search

+7 -2
View File
@@ -637,7 +637,7 @@ int tox_run_main(int argc, char** argv) {
};
auto openWindow = [&]() {
if (isPhonePasscodeLocked()) return;
if (isDuressMode() || isPhonePasscodeLocked()) return;
writeIntFile(activePidPath, static_cast<int>(::getpid()));
closeOtherPlugins("tox");
visible = true;
@@ -665,6 +665,11 @@ int tox_run_main(int argc, char** argv) {
if (cmd == "NOP") continue;
if (cmd == "CLOSE") closeWindow();
else if (cmd == "RELOAD_THEME") {
if (isDuressMode()) {
closeWindow();
networkActive = false;
continue;
}
neo.reloadTheme();
if (visible) render();
} else if (cmd.rfind("CALL_ACCEPT", 0) == 0) {
@@ -706,7 +711,7 @@ int tox_run_main(int argc, char** argv) {
// Iterate Tox and ToxAV when visible, in a call, or when friends are configured
bool shouldIterateTox =
networkActive && tox &&
!isDuressMode() && networkActive && tox &&
(visible || ctx.inCall || tox_self_get_friend_list_size(tox) > 0);
if (shouldIterateTox) {
tox_iterate(tox, &ctx);