Compare commits
No commits in common. "90ba69d1b069b9aeb798bb52d627d35093b866ca" and "7a5278012bd23e94cb26374fb799c3d2ba809b1c" have entirely different histories.
90ba69d1b0
...
7a5278012b
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "multi-hoster-uploader",
|
"name": "multi-hoster-uploader",
|
||||||
"version": "3.0.6",
|
"version": "3.0.5",
|
||||||
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
|
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -118,11 +118,7 @@ async function init() {
|
|||||||
});
|
});
|
||||||
window.api.onShutdownCountdown(handleShutdownCountdown);
|
window.api.onShutdownCountdown(handleShutdownCountdown);
|
||||||
window.api.onUploadLogFallback((data) => {
|
window.api.onUploadLogFallback((data) => {
|
||||||
// Non-blocking toast instead of alert() — alert() in Electron halts the
|
alert('Der konfigurierte Log-Pfad konnte nicht beschrieben werden.\n\nNeue Einträge werden zwischenzeitlich hier gespeichert:\n' + (data && data.fallbackPath ? data.fallbackPath : '(Fallback)') + '\n\nBitte in den Einstellungen einen gültigen Pfad setzen.');
|
||||||
// entire renderer main thread (including the upload table) until the user
|
|
||||||
// clicks OK. During a big batch that freezes everything.
|
|
||||||
const path = data && data.fallbackPath ? data.fallbackPath : '(Fallback)';
|
|
||||||
showCopyToast(`Log-Pfad nicht beschreibbar — schreibe nach: ${path}`, 8000);
|
|
||||||
});
|
});
|
||||||
window.api.onAccountRotationLog((entry) => {
|
window.api.onAccountRotationLog((entry) => {
|
||||||
// Surface only the user-visible rotation events as toasts; full detail
|
// Surface only the user-visible rotation events as toasts; full detail
|
||||||
@ -3895,12 +3891,12 @@ function escapeAttr(str) {
|
|||||||
return String(str).replace(_ATTR_ESC_RE, (c) => _ATTR_ESC_MAP[c]);
|
return String(str).replace(_ATTR_ESC_RE, (c) => _ATTR_ESC_MAP[c]);
|
||||||
}
|
}
|
||||||
|
|
||||||
function showCopyToast(msg, durationMs) {
|
function showCopyToast(msg) {
|
||||||
const toast = document.getElementById('copyToast');
|
const toast = document.getElementById('copyToast');
|
||||||
toast.textContent = msg;
|
toast.textContent = msg;
|
||||||
toast.classList.add('show');
|
toast.classList.add('show');
|
||||||
clearTimeout(toast._timer);
|
clearTimeout(toast._timer);
|
||||||
toast._timer = setTimeout(() => toast.classList.remove('show'), durationMs || 1500);
|
toast._timer = setTimeout(() => toast.classList.remove('show'), 1500);
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- Resize handle for recent-files panel ---
|
// --- Resize handle for recent-files panel ---
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user