merge branch 'main' (lost 4 commits) into develop

This commit is contained in:
Fazri Gading
2026-01-25 13:54:15 +08:00
9 changed files with 466 additions and 422 deletions

View File

@@ -207,6 +207,11 @@ function setupSettingsElements() {
}
if (closeLauncherCheck) {
closeLauncherCheck.addEventListener('change', saveCloseLauncher);
}
// UUID event listeners
if (copyUuidBtn) {
copyUuidBtn.addEventListener('click', copyCurrentUuid);
@@ -392,6 +397,31 @@ async function loadCloseLauncher() {
}
async function saveCloseLauncher() {
try {
if (window.electronAPI && window.electronAPI.saveCloseLauncher && closeLauncherCheck) {
const enabled = closeLauncherCheck.checked;
await window.electronAPI.saveCloseLauncher(enabled);
}
} catch (error) {
console.error('Error saving close launcher setting:', error);
}
}
async function loadCloseLauncher() {
try {
if (window.electronAPI && window.electronAPI.loadCloseLauncher) {
const enabled = await window.electronAPI.loadCloseLauncher();
if (closeLauncherCheck) {
closeLauncherCheck.checked = enabled;
}
}
} catch (error) {
console.error('Error loading close launcher setting:', error);
}
}
async function savePlayerName() {
try {
if (!window.electronAPI || !settingsPlayerName) return;

View File

@@ -638,6 +638,9 @@ function setupUI() {
// Setup retry button
setupRetryButton();
// Setup draggable progress bar
setupProgressDrag();
lockPlayButton(true);
setTimeout(() => {
@@ -738,7 +741,6 @@ window.LauncherUI = {
// Make installation effects globally available
// Draggable progress bar functionality
function setupProgressDrag() {
if (!progressOverlay) return;