Skip to content

Commit

Permalink
Fix load help Javascript callback on slower computers and remove QWeb…
Browse files Browse the repository at this point in the history
…EngineView import
  • Loading branch information
nshiell committed May 23, 2022
1 parent cde0685 commit 6a1db13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion database-dossier.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import sys, signal
from PyQt5.QtWidgets import QApplication
from database_dossier import MainWindow
from PyQt5 import QtWebEngineWidgets

if __name__ == '__main__':
# Kill the app on ctrl-c
Expand Down
12 changes: 4 additions & 8 deletions doc/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,27 +100,23 @@
}

ready (callback) {
if (window.host) {
setTimeout(() => {
callback()
} else {
setTimeout(() => {
this.ready(callback)
}, 5)
}
}, 5)
}
}

const hostClient = new HostClient()

$(function() {
const documentStructure = []
hostClient.ready(function () {
hostClient.query('config-path', null, function (path) {
$('.config-path').html(path)
})
hostClient.query('document-structure', documentStructure)
})

const documentStructure = []
let $currentH1 = null
$('.topic').each(function () {
const $topic = $(this)
Expand Down Expand Up @@ -256,4 +252,4 @@ <h1><a name="storage">Storage</a></h1>
</div>

</body>
</html>
</html>

0 comments on commit 6a1db13

Please sign in to comment.