improve diagnostics, security UX, and network tab refresh
Diagnostics & logging: - add verbose logging system (VERBOSE_LOGF) with toggle in Settings - forward app-level log messages to Console tab for in-UI visibility - add detailed connection attempt logging (attempt #, daemon state, config paths, auth failures, port owner identification) - detect HTTP 401 auth failures and show actionable error messages - identify port owner process (PID + name) on both Linux and Windows - demote noisy acrylic/shader traces from DEBUG_LOGF to VERBOSE_LOGF - persist verbose_logging preference in settings.json - link iphlpapi on Windows for GetExtendedTcpTable Security & encryption: - update local encryption state immediately after encryptwallet RPC so Settings reflects the change before daemon restarts - show notifications for encrypt success/failure and PIN skip - use dedicated RPC client for z_importwallet during decrypt flow to avoid blocking main rpc_ curl_mutex (which starved peer/tx refresh) - force full state refresh (addresses, transactions, peers) after successful wallet import Network tab: - redesign peers refresh button as glass-panel with icon + label, matching the mining button style - add spinning arc animation while peer data is loading (peer_refresh_in_progress_ atomic flag set/cleared in refreshPeerInfo) - prevent double-click spam during refresh - add refresh-button size to ui.toml Other: - use fast_rpc_ for rescan polling to avoid blocking on main rpc_ - enable DRAGONX_DEBUG in all build configs (was debug-only) - setup.sh: pull latest xmrig-hac when repo already exists
This commit is contained in:
@@ -1200,7 +1200,7 @@ void AcrylicMaterial::resize(int width, int height)
|
||||
dx_blurHeight_ = bh;
|
||||
dx_blurCurrent_ = 0;
|
||||
dirtyFrames_ = 2;
|
||||
DEBUG_LOGF("[Acrylic DX11] Resized %dx%d (blur %dx%d)\n", width, height, bw, bh);
|
||||
VERBOSE_LOGF("[Acrylic DX11] Resized %dx%d (blur %dx%d)\n", width, height, bw, bh);
|
||||
}
|
||||
|
||||
void AcrylicMaterial::captureBackground()
|
||||
@@ -1391,7 +1391,7 @@ void AcrylicMaterial::applyBlur(float radius)
|
||||
static bool s_traced = false;
|
||||
if (!s_traced) {
|
||||
s_traced = true;
|
||||
DEBUG_LOGF("[Acrylic DX11] applyBlur: %d passes, radius=%.1f, blurSize=%dx%d\n",
|
||||
VERBOSE_LOGF("[Acrylic DX11] applyBlur: %d passes, radius=%.1f, blurSize=%dx%d\n",
|
||||
passes, effectiveRadius, dx_blurWidth_, dx_blurHeight_);
|
||||
}
|
||||
|
||||
@@ -1469,7 +1469,7 @@ void AcrylicMaterial::drawRect(ImDrawList* drawList, const ImVec2& pMin, const I
|
||||
static bool s_traced = false;
|
||||
if (!s_traced) {
|
||||
s_traced = true;
|
||||
DEBUG_LOGF("[Acrylic DX11] drawRect first call: fallback=%d enabled=%d quality=%d "
|
||||
VERBOSE_LOGF("[Acrylic DX11] drawRect first call: fallback=%d enabled=%d quality=%d "
|
||||
"hasCapture=%d blurValid=%d viewport=%dx%d\n",
|
||||
(int)currentFallback_, (int)settings_.enabled,
|
||||
(int)settings_.quality, (int)hasValidCapture_,
|
||||
@@ -1524,7 +1524,7 @@ void AcrylicMaterial::drawRect(ImDrawList* drawList, const ImVec2& pMin, const I
|
||||
static bool s_blurTraced = false;
|
||||
if (!s_blurTraced && blurTex) {
|
||||
s_blurTraced = true;
|
||||
DEBUG_LOGF("[Acrylic DX11] blur tex=%p UV: (%.3f,%.3f)-(%.3f,%.3f)\n",
|
||||
VERBOSE_LOGF("[Acrylic DX11] blur tex=%p UV: (%.3f,%.3f)-(%.3f,%.3f)\n",
|
||||
(void*)blurTex, u0, v0, u1, v1);
|
||||
}
|
||||
|
||||
|
||||
@@ -310,7 +310,7 @@ struct ScrollFadeShader {
|
||||
return false;
|
||||
}
|
||||
|
||||
DEBUG_LOGF("ScrollFadeShader: DX11 pixel shader + CB created\n");
|
||||
VERBOSE_LOGF("ScrollFadeShader: DX11 pixel shader + CB created\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user