mirror of
https://github.com/gradenGnostic/LegacyLauncher.git
synced 2026-08-20 04:28:19 +00:00
Fix options, servers, profile buttons staying on screen
This commit is contained in:
parent
cf5f6d882a
commit
e231529a47
|
|
@ -968,6 +968,7 @@ function toggleOptions(show) {
|
||||||
if (isProcessing) return;
|
if (isProcessing) return;
|
||||||
const modal = document.getElementById('options-modal');
|
const modal = document.getElementById('options-modal');
|
||||||
if (show) {
|
if (show) {
|
||||||
|
document.activeElement?.blur();
|
||||||
modal.style.display = 'flex';
|
modal.style.display = 'flex';
|
||||||
modal.style.opacity = '1';
|
modal.style.opacity = '1';
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -981,6 +982,7 @@ async function toggleProfile(show) {
|
||||||
const modal = document.getElementById('profile-modal');
|
const modal = document.getElementById('profile-modal');
|
||||||
if (show) {
|
if (show) {
|
||||||
await updatePlaytimeDisplay();
|
await updatePlaytimeDisplay();
|
||||||
|
document.activeElement?.blur();
|
||||||
modal.style.display = 'flex';
|
modal.style.display = 'flex';
|
||||||
modal.style.opacity = '1';
|
modal.style.opacity = '1';
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -994,6 +996,7 @@ async function toggleServers(show) {
|
||||||
const modal = document.getElementById('servers-modal');
|
const modal = document.getElementById('servers-modal');
|
||||||
if (show) {
|
if (show) {
|
||||||
await loadServers();
|
await loadServers();
|
||||||
|
document.activeElement?.blur();
|
||||||
modal.style.display = 'flex';
|
modal.style.display = 'flex';
|
||||||
modal.style.opacity = '1';
|
modal.style.opacity = '1';
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue