Browse Source

remove last remnants of layout

pull/353/head
lizzie 4 weeks ago
committed by Caio Oliveira
parent
commit
30c392dfdb
No known key found for this signature in database GPG Key ID: 362DA3DC1901E080
  1. 11
      src/yuzu/configuration/configure_general.cpp

11
src/yuzu/configuration/configure_general.cpp

@ -40,8 +40,6 @@ void ConfigureGeneral::SetConfiguration() {}
void ConfigureGeneral::Setup(const ConfigurationShared::Builder& builder) { void ConfigureGeneral::Setup(const ConfigurationShared::Builder& builder) {
QLayout& general_layout = *ui->general_widget->layout(); QLayout& general_layout = *ui->general_widget->layout();
QLayout& linux_layout = *ui->linux_widget->layout();
std::map<u32, QWidget*> general_hold{}; std::map<u32, QWidget*> general_hold{};
std::map<u32, QWidget*> linux_hold{}; std::map<u32, QWidget*> linux_hold{};
@ -54,12 +52,6 @@ void ConfigureGeneral::Setup(const ConfigurationShared::Builder& builder) {
}; };
push(UISettings::values.linkage.by_category[Settings::Category::UiGeneral]); push(UISettings::values.linkage.by_category[Settings::Category::UiGeneral]);
// Only show Linux group on Unix
#ifndef __unix__
ui->LinuxGroupBox->setVisible(false);
#endif
for (const auto setting : settings) { for (const auto setting : settings) {
auto* widget = builder.BuildWidget(setting, apply_funcs); auto* widget = builder.BuildWidget(setting, apply_funcs);
@ -83,9 +75,6 @@ void ConfigureGeneral::Setup(const ConfigurationShared::Builder& builder) {
for (const auto& [id, widget] : general_hold) { for (const auto& [id, widget] : general_hold) {
general_layout.addWidget(widget); general_layout.addWidget(widget);
} }
for (const auto& [id, widget] : linux_hold) {
linux_layout.addWidget(widget);
}
} }
// Called to set the callback when resetting settings to defaults // Called to set the callback when resetting settings to defaults

Loading…
Cancel
Save