mirror of
https://github.com/gradenGnostic/LegacyLauncher.git
synced 2026-07-18 03:40:51 +00:00
Merge pull request #26 from Dettomi/patch-1
Fix options, servers, profile buttons staying on screen
This commit is contained in:
@@ -968,6 +968,7 @@ function toggleOptions(show) {
|
||||
if (isProcessing) return;
|
||||
const modal = document.getElementById('options-modal');
|
||||
if (show) {
|
||||
document.activeElement?.blur();
|
||||
modal.style.display = 'flex';
|
||||
modal.style.opacity = '1';
|
||||
} else {
|
||||
@@ -981,6 +982,7 @@ async function toggleProfile(show) {
|
||||
const modal = document.getElementById('profile-modal');
|
||||
if (show) {
|
||||
await updatePlaytimeDisplay();
|
||||
document.activeElement?.blur();
|
||||
modal.style.display = 'flex';
|
||||
modal.style.opacity = '1';
|
||||
} else {
|
||||
@@ -994,6 +996,7 @@ async function toggleServers(show) {
|
||||
const modal = document.getElementById('servers-modal');
|
||||
if (show) {
|
||||
await loadServers();
|
||||
document.activeElement?.blur();
|
||||
modal.style.display = 'flex';
|
||||
modal.style.opacity = '1';
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user