mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-16 04:45:34 +00:00
only show server launch button when panel is enabled
This commit is contained in:
parent
b89861fc38
commit
c56c83b9c0
@ -108,7 +108,7 @@
|
||||
<button class="smolBtn" onclick="setGenshinImpactFolder()">Set "Genshin Impact Game" folder</button>
|
||||
<span id="genshinPath" style="margin-top: 4px;"></span>
|
||||
</div>
|
||||
<div>
|
||||
<div style="display: none;">
|
||||
<button class="smolBtn" onclick="setGrassCutterFolder()">Set "GrassCutter" .jar file</button>
|
||||
<span id="serverPath" style="margin-top: 4px;"></span>
|
||||
</div>
|
||||
|
@ -468,11 +468,14 @@ async function checkForUpdatesAndShow() {
|
||||
|
||||
async function displayServerLaunchSection() {
|
||||
const serverPanel = document.querySelector('#thirdPanel')
|
||||
const bottomBtnSection = document.querySelector('#serverPath').parentElement
|
||||
|
||||
if (serverPanel.style.display === 'none') {
|
||||
serverPanel.style.removeProperty('display')
|
||||
bottomBtnSection.style.removeProperty('display')
|
||||
} else {
|
||||
serverPanel.style.display = 'none'
|
||||
bottomBtnSection.style.display = 'none'
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user