Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pitchum
gajim-plugins
Commits
dd4a503e
Commit
dd4a503e
authored
Jul 12, 2020
by
Philipp Hörist
Browse files
[plugin_installer] Don't get gajim version from config
parent
bd215958
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugin_installer/utils.py
View file @
dd4a503e
...
...
@@ -9,6 +9,7 @@ from packaging.version import Version as V
from
gi.repository
import
Gtk
from
gi.repository
import
GdkPixbuf
import
gajim
from
gajim.common
import
app
from
gajim.common
import
configpaths
...
...
@@ -87,7 +88,7 @@ class PluginInfo:
return
self
.
_installed_version
def
has_valid_version
(
self
):
gajim_version
=
V
(
app
.
config
.
get
(
'
version
'
)
)
gajim_version
=
V
(
gajim
.
__
version
__
)
return
self
.
min_gajim_version
<=
gajim_version
<=
self
.
max_gajim_version
def
_get_installed_version
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment