fixed for "rider for unreal engine"
Signed-off-by: pengzhile <pengzhile@gmail.com>
This commit is contained in:
@@ -26,7 +26,6 @@ public class Resetter {
|
||||
private static final String OLD_MACHINE_ID_KEY = "JetBrains.UserIdOnMachine";
|
||||
private static final String NEW_MACHINE_ID_KEY = DEFAULT_VENDOR + ".user_id_on_machine";
|
||||
private static final String DEVICE_ID_KEY = DEFAULT_VENDOR + ".device_id";
|
||||
private static final String IDE_EVAL_PREFIX = DEFAULT_VENDOR + "/" + Constants.IDE_NAME_LOWER + "/" + Constants.IDE_HASH;
|
||||
private static final String EVAL_KEY = "evlsprt";
|
||||
private static final String AUTO_RESET_KEY = Constants.PLUGIN_PREFS_PREFIX + ".auto_reset." + Constants.IDE_NAME_LOWER + "." + Constants.IDE_HASH;
|
||||
|
||||
@@ -106,7 +105,13 @@ public class Resetter {
|
||||
|
||||
try {
|
||||
List<String> prefsList = new ArrayList<>();
|
||||
getAllPrefsKeys(Preferences.userRoot().node(IDE_EVAL_PREFIX), prefsList);
|
||||
for (String name:Preferences.userRoot().node(DEFAULT_VENDOR).childrenNames()) {
|
||||
if (!name.toLowerCase().startsWith(Constants.IDE_NAME_LOWER)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
getAllPrefsKeys(Preferences.userRoot().node(DEFAULT_VENDOR + "/" + name + "/" + Constants.IDE_HASH), prefsList);
|
||||
}
|
||||
|
||||
Method methodGetProductCode = ReflectionHelper.getMethod(IdeaPluginDescriptor.class, "getProductCode");
|
||||
if (null != methodGetProductCode) {
|
||||
|
||||
@@ -18,7 +18,7 @@ public class PluginListener implements DynamicPluginListener {
|
||||
}
|
||||
|
||||
ActionManager.getInstance().getAction(Constants.RESET_ACTION_ID);
|
||||
NotificationHelper.showInfo(null, "Plugin installed successfully! Now enjoy it~<br>For more information, visit <a href='https://zhile.io/2020/11/19/jetbrains-eval-reset.html'>here</a>.");
|
||||
NotificationHelper.showInfo(null, "Plugin installed successfully! Now enjoy it~<br>For more information, visit <a href='https://zhile.io/2020/11/18/jetbrains-eval-reset.html'>here</a>.");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
I can reset your IDE eval information.<br>
|
||||
<em>Click "Help" menu and select "Eval Reset"</em><br><br>
|
||||
<p>
|
||||
<a href="https://zhile.io/2020/11/19/jetbrains-eval-reset.html" target="_blank">Need Help?</a>
|
||||
<a href="https://zhile.io/2020/11/18/jetbrains-eval-reset.html" target="_blank">Need Help?</a>
|
||||
</p>
|
||||
]]></description>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user