New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controller script loader always uses local copy #8339
Comments
Commented by: ywwg if we already do the right thing with respect to XML, then we should definitely fix this for js. |
Commented by: ywwg which preset? There is code that is supposed to do the right thing in dlgprefcontroller.cpp:380. |
Commented by: ywwg reproduced, working on this now |
Commented by: ywwg So the problem is that when the user picks an item from the preset menu, the listitem contains the full path of the preset to import -- either the user's preset, or the system preset. But the scripts are loaded dynamically, and it looks first in the user's dir, and if it finds the script, it's done. To fix this, we have to know which preset they are loading and load the script from the same path. Should we put up a warning box when presets are loaded, indicating that users might lose customization? |
Commented by: ywwg oh, hah, we increment the filename, no need to warn the user |
Commented by: Pegasus-RPG Sweet, thanks for the quick fix! |
Issue closed with status Fix Released. |
Reported by: Pegasus-RPG
Date: 2015-11-26T02:46:21Z
Status: Fix Released
Importance: High
Launchpad Issue: lp1520047
Tags: controllers, midi, scripting
As I update controller scrips, I'm editing the file in /res/controllers and running Mixxx with --resourcePath res/
I repeatedly tell it to reload the preset (choosing the second of the same name in the list because I know the first is my local copy) and the XML is updated correctly, but if a copy of the JS file is in my ~/.mixxx directory, it uses that regardless. I have to manually delete that copy in order for it to try using the copy in res/.
This is serious because it will cause all kinds of problems when users try to load updated presets after upgrading.
The text was updated successfully, but these errors were encountered: