forked from qt-creator/qt-creator
WebAssembly: React to AspectContainer::applied
... instead of overriding IOptionsPage::apply() Change-Id: I00d30de7d604409be753eb8b9f668c24790e0a49 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -64,6 +64,8 @@ WebAssemblySettings::WebAssemblySettings()
|
||||
emSdk.setExpectedKind(Utils::PathChooser::ExistingDirectory);
|
||||
emSdk.setDefaultFilePath(FileUtils::homePath());
|
||||
|
||||
connect(this, &Utils::AspectContainer::applied, &WebAssemblyToolChain::registerToolChains);
|
||||
|
||||
setLayouter([this](QWidget *widget) {
|
||||
auto instruction = new QLabel(
|
||||
Tr::tr("Select the root directory of an installed %1. "
|
||||
@@ -122,12 +124,6 @@ WebAssemblySettings::WebAssemblySettings()
|
||||
readSettings();
|
||||
}
|
||||
|
||||
void WebAssemblySettings::apply()
|
||||
{
|
||||
WebAssemblyToolChain::registerToolChains();
|
||||
Core::IOptionsPage::apply();
|
||||
}
|
||||
|
||||
void WebAssemblySettings::updateStatus()
|
||||
{
|
||||
WebAssemblyEmSdk::clearCaches();
|
||||
|
||||
Reference in New Issue
Block a user