Added exit btn

- Updated credits
- Updated version
- Removed log file
- Updated app key
This commit is contained in:
2024-05-26 10:39:36 +02:00
parent 620c8114ac
commit 829ffa18a6
5 changed files with 28 additions and 13 deletions

View File

@ -20,15 +20,19 @@ $(document).ready(async function() {
// Enable window close event
await Neutralino.events.on('windowClose', async () => {
console.log('Window close event received.')
let data = window.localStorage.getItem('config');
await Neutralino.storage.setData('config', data);
Neutralino.app.exit();
quit();
});
await initStorage();
});
async function quit() {
console.log('Window close event received.')
let data = window.localStorage.getItem('config');
await Neutralino.storage.setData('config', data);
Neutralino.app.exit();
}
function loadView(view) {
$("#content").fadeOut(200, function() {
const viewPath = `views/${view}/${view}`;

View File

@ -15,6 +15,8 @@
<p>Using jQuery</p>
<p>Using animate.css</p>
<p>Build with NeutralinoJS</p>
<p>Using Bootstrap icons</p>
<p>All visible images/graphics are generated using DALL-E3 by OpenAI</p>
<h4 class="mt-5">MIT License</h4>
<p>

View File

@ -34,6 +34,11 @@
</div>
<!-- Add more apps here as needed -->
</div>
<div class="row justify-content-center">
<div class="col-auto">
<button type="button" class="btn btn-light mt-5" id="exit-btn">Exit App</button>
</div>
</div>
</div>
</section>
<div class="background-container">

View File

@ -16,4 +16,8 @@ function init(){
console.log("About button clicked");
loadView("about");
});
$("#exit-btn").click(function(){
console.log("Quit button clicked");
quit();
});
}