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:
parent
a4bad80479
commit
eb5315580d
|
@ -101,7 +101,7 @@ class GnomeShellExtension {
|
||||||
" ],\n" +
|
" ],\n" +
|
||||||
" \"url\": \"https://github.com/dorkbox/SystemTray\",\n" +
|
" \"url\": \"https://github.com/dorkbox/SystemTray\",\n" +
|
||||||
" \"uuid\": \"" + UID + "\",\n" +
|
" \"uuid\": \"" + UID + "\",\n" +
|
||||||
" \"version\": 1\n" +
|
" \"version\": " + SystemTray.getVersion() + "\n" +
|
||||||
"}\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
|
// 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;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user