Version information for the qml ui module
This commit is contained in:
parent
238cac1eb8
commit
51efb2e089
2 changed files with 9 additions and 8 deletions
|
@ -40,11 +40,9 @@ Python {
|
|||
signal updatedPodcast(var podcast)
|
||||
|
||||
Component.onCompleted: {
|
||||
setHandler('hello', function (version, copyright, date, url) {
|
||||
console.log('gPodder ' + version + ' (' + date + ')');
|
||||
console.log(url);
|
||||
console.log(copyright);
|
||||
|
||||
setHandler('hello', function (coreversion, uiversion) {
|
||||
console.log('gPodder Core ' + coreversion);
|
||||
console.log('gPodder QML UI ' + uiversion);
|
||||
console.log('PyOtherSide ' + py.pluginVersion());
|
||||
console.log('Python ' + py.pythonVersion());
|
||||
});
|
||||
|
|
9
main.py
9
main.py
|
@ -15,6 +15,11 @@
|
|||
# PERFORMANCE OF THIS SOFTWARE.
|
||||
#
|
||||
|
||||
# Version of the QML UI implementation, this is usually the same as the version
|
||||
# of gpodder-core, but we might have a different release schedule later on. If
|
||||
# we decide to have parallel releases, we can at least start using this version
|
||||
# to check if the core version is compatible with the QML UI version.
|
||||
__version__ = '4.0.0'
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
@ -294,9 +299,7 @@ class gPotherSide:
|
|||
gpotherside = gPotherSide()
|
||||
pyotherside.atexit(gpotherside.atexit)
|
||||
|
||||
pyotherside.send('hello',
|
||||
gpodder.__version__, gpodder.__copyright__,
|
||||
gpodder.__date__, gpodder.__url__)
|
||||
pyotherside.send('hello', gpodder.__version__, __version__)
|
||||
|
||||
# Exposed API Endpoints for calls from QML
|
||||
initialize = gpotherside.initialize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue