Gnome shell extension can now be reinstalled based on

GNOME/SystemTray versions (if they are different, the extension will
re-install)
This commit is contained in:
nathan 2016-09-22 22:30:59 +02:00
parent a4bad80479
commit eb5315580d

View File

@ -101,7 +101,7 @@ class GnomeShellExtension {
" ],\n" +
" \"url\": \"https://github.com/dorkbox/SystemTray\",\n" +
" \"uuid\": \"" + UID + "\",\n" +
" \"version\": 1\n" +
" \"version\": " + SystemTray.getVersion() + "\n" +
"}\n";
@ -136,6 +136,10 @@ class GnomeShellExtension {
// if we are DEBUG, then we ALWAYS want to copy over our extension. We will have to manually restart the shell to see it
return;
}
} else {
// this means that we need to reinstall our extension, since either GNOME or US have changed versions since
// we last installed the extension.
hasSystemTray = false;
}
}