mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 19:42:07 +08:00
settings.cc: remove function network_panel (#25030)
remove function network_panel old-commit-hash: 5f794fe49a1e0f2849e6a979c7bd12ca5ddb060a
This commit is contained in:
@@ -279,10 +279,6 @@ void SoftwarePanel::updateLabels() {
|
||||
osVersionLbl->setText(QString::fromStdString(Hardware::get_os_version()).trimmed());
|
||||
}
|
||||
|
||||
QWidget *network_panel(QWidget *parent) {
|
||||
return new Networking(parent);
|
||||
}
|
||||
|
||||
void SettingsWindow::showEvent(QShowEvent *event) {
|
||||
panel_widget->setCurrentIndex(0);
|
||||
nav_btns->buttons()[0]->setChecked(true);
|
||||
@@ -328,7 +324,7 @@ SettingsWindow::SettingsWindow(QWidget *parent) : QFrame(parent) {
|
||||
|
||||
QList<QPair<QString, QWidget *>> panels = {
|
||||
{tr("Device"), device},
|
||||
{tr("Network"), network_panel(this)},
|
||||
{tr("Network"), new Networking(this)},
|
||||
{tr("Toggles"), new TogglesPanel(this)},
|
||||
{tr("Software"), new SoftwarePanel(this)},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user