chatgui/chatgui-android: уведомления со звуком, флаги и прочие улучшения UI

This commit is contained in:
evgeny committed 2026-09-10 00:23:14 +03:00
1 parent 6c857ceab8
commit 0f308fdbd7
20 files changed
+292 -32

No files matched your search

-12
View File
@@ -2,7 +2,6 @@
#include "utun_node.h"
#include <cinttypes>
#include <QDir>
#include <csignal>
#include "../../lib/socket_compat.h"
// === C headers ===
@@ -34,11 +33,6 @@ extern "C" {
static UtunNode* g_currentNode = nullptr;
static void signal_handler(int sig) {
(void)sig;
if (g_currentNode) g_currentNode->requestStop();
}
UtunNode::UtunNode(QObject* parent) : QObject(parent) {}
UtunNode::~UtunNode() {
@@ -272,9 +266,6 @@ void UtunNode::runLoop() {
DEBUG_DEBUG(DEBUG_CATEGORY_GENERAL, "chat_core + chat_sync initialized");
DEBUG_DEBUG(DEBUG_CATEGORY_GENERAL, "utun_node: entering poll loop");
signal(SIGINT, signal_handler);
signal(SIGTERM, signal_handler);
while (!m_stop) {
uasync_poll(ua, 100);
}
@@ -287,9 +278,6 @@ void UtunNode::runLoop() {
m_instance = nullptr;
}
signal(SIGINT, SIG_DFL);
signal(SIGTERM, SIG_DFL);
DEBUG_DEBUG(DEBUG_CATEGORY_GENERAL, "runLoop: emitting stopped");
QMetaObject::invokeMethod(this, [this] { emit stopped(); });
}