4
0
mirror of https://github.com/AltarikMC/Launcher synced 2025-12-15 12:01:46 +00:00

Remove notification when update downloaded + improve bug_report + make some correction to js and html in general

This commit is contained in:
2021-09-25 18:52:31 +02:00
parent a9e0a7cc37
commit c0d3abd297
10 changed files with 30 additions and 35 deletions

View File

@@ -68,15 +68,13 @@ let app = new vue({
}
}
})
const sidebar = document.querySelector("#sidebar-content")
let gameLaunching = false
let selectedChapter = -1;
ipcRenderer.on("nick", (_, args) => app.nick = args.name)
ipcRenderer.on("invalidated", e => {
ipcRenderer.on("invalidated", () => {
app.invalidateButtonDisabled = false
app.invalidateButtonText = "Supprimer et retélécharger les bibliothèques"
})
@@ -117,7 +115,7 @@ ipcRenderer.on("modsInformations", (e, args) => {
function changeSelectedChapter(element) {
selectedChapter = Number(element.dataset.chapter)
document.querySelectorAll("#sidebar-content > div").forEach((v, key) => {
document.querySelectorAll("#sidebar-content > div").forEach((v) => {
v.classList.remove("selected")
})
element.classList.add("selected")