mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Previously we already switch to loading the bootstrap file only from the
local file (ec42553910).
This removes the remaining parts of loading the bootstrap file from a
remote location.
This also updates the UI in case of parsing errors of the bootstrap.json.
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
// SPDX-FileCopyrightText: Copyright (C) 2017 swift Project Community / Contributors
|
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
|
|
|
#include "copyconfigurationdialog.h"
|
|
#include "ui_copyconfigurationdialog.h"
|
|
#include "blackgui/guiapplication.h"
|
|
|
|
namespace BlackGui::Components
|
|
{
|
|
CCopyConfigurationDialog::CCopyConfigurationDialog(QWidget *parent) : QDialog(parent),
|
|
ui(new Ui::CCopyConfigurationDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
this->setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
|
}
|
|
|
|
CCopyConfigurationDialog::~CCopyConfigurationDialog()
|
|
{}
|
|
|
|
void CCopyConfigurationDialog::setCacheMode()
|
|
{
|
|
ui->comp_CopyConfiguration->setCacheMode();
|
|
}
|
|
|
|
void CCopyConfigurationDialog::setSettingsMode()
|
|
{
|
|
ui->comp_CopyConfiguration->setSettingsMode();
|
|
}
|
|
|
|
void CCopyConfigurationDialog::selectAll()
|
|
{
|
|
ui->comp_CopyConfiguration->selectAll();
|
|
}
|
|
|
|
void CCopyConfigurationDialog::setNameFilterDisables(bool disable)
|
|
{
|
|
ui->comp_CopyConfiguration->setNameFilterDisables(disable);
|
|
}
|
|
|
|
bool CCopyConfigurationDialog::event(QEvent *event)
|
|
{
|
|
if (CGuiApplication::triggerShowHelp(this, event)) { return true; }
|
|
return QDialog::event(event);
|
|
}
|
|
} // ns
|