This must display the dialog whether or not users.js is running. Both C++ and JavaScript need to open or restore the same dialog, hence a new dialog rather than using WebWindow with its JavaScript baggage.
Showing the changes to interface/src/scripting/GlobalServicesScriptingInterface.cpp (1 of 7 files). Show all
Unified · Split
| @@ -123,3 +123,7 @@ void GlobalServicesScriptingInterface::checkDownloadInfo() { · 122 unmodified lines | ||
| 123 | 123 | void GlobalServicesScriptingInterface::updateDownloadInfo() { |
| 124 | 124 | emit downloadInfoChanged(getDownloadInfo()); |
| 125 | 125 | } |
| 126 | + | |
| 127 | +void GlobalServicesScriptingInterface::editFriends() { | |
| 128 | + QMetaObject::invokeMethod(Application::getInstance(), "showEditFriendsDialog"); | |
| 129 | +} | |