Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pages/settingsSite.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h2 data-i18n="settings">Beállítások</h2>

<button class="button" id="saveBtn" data-i18n="save">Mentés</button>

<p id="saveStatus" style="margin-top: 10px;"></p>
<p id="saveStatus" style="margin-top: 10px; display: none;"><span data-i18n="directorySaved">Könyvtár mentve:</span> <span id="savePath"></span></p>

<h3 data-i18n="libgenServerSelection">Libgen szerver kiválasztása</h3>
<p data-i18n="libgenPingDescription">
Expand Down
4 changes: 3 additions & 1 deletion renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ async function showPage(page) {
else if (page === 'settingsSite') {
const dirInput = document.getElementById('dirInput');
const status = document.getElementById('saveStatus');
const savePath = document.getElementById('savePath');
const currentDirText = document.getElementById('currentDir');
const saveBtn = document.getElementById('saveBtn');

Expand All @@ -138,7 +139,8 @@ async function showPage(page) {
const newPath = dirInput.value;
const result = await window.electronAPI.setConfig(newPath);
if (result.success) {
status.textContent = `Könyvtár mentve: ${result.path}`;
status.style.display= 'block';
savePath.textContent = `${result.path}`;
status.style.color = 'green';
currentDirText.textContent = result.path;
} else {
Expand Down