Skip to content

Commit

Permalink
fixups for Boot.pre/postload
Browse files Browse the repository at this point in the history
- partial #239
  • Loading branch information
vankasteelj committed Dec 4, 2024
1 parent eafc12b commit 89811b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/js/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

console.info('Opening app...')
console.info('Running app version', PKJSON.version)

// setup window's content and start the app
try {
Expand Down
10 changes: 7 additions & 3 deletions app/js/utils/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ const Boot = {

// STARTUP: set up version number and repository link
setupVersion: () => {
console.info('Running app version', PKJSON.version)
$('#about .version').text(PKJSON.version)
$('#about .repolink').on('click', () => {
Misc.openExternal(PKJSON.homepage)
Expand Down Expand Up @@ -271,11 +270,9 @@ const Boot = {
// use the "Custom" feature
if (DB.sync.get('use_customs')) {
document.querySelector('#customs-feature').checked = true
$('#navbar .customs').show()
}
if (DB.sync.get('customs_name')) {
const name = DB.sync.get('customs_name')
$('#navbar .customs .text').text(name)
document.querySelector('#customs-name').value = name
}
if (DB.sync.get('customs_url')) {
Expand Down Expand Up @@ -503,6 +500,13 @@ const Boot = {
const selected = $setting.val()
DB.sync.store(selected, 'startscreen')
})

// custom list
if (DB.sync.get('use_customs')) {
$('#navbar .customs').show()
const name = DB.sync.get('customs_name')
name && $('#navbar .customs .text').text(name)
}
},

tray: () => {
Expand Down

0 comments on commit 89811b2

Please sign in to comment.