mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-10 06:56:49 +00:00
a82f31a310
- [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- Small good simplification to nuke a toggle which costed me almost an entire day of work when fixing controller applet issues: There were two settings related to Controller applet: -"disable controller applet", which is a boolean toggle; -"controller configuration" applet mode, which is a "Real"/"Custom" picker; All i did was to nuke the toggle and add a third option "Disabled" to the picker. Users which used the disable toggle will have to pick Disabled; Real/Custom settings wont be affected since their indexes remains. All options tested against diablo 3. All working as intended. Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4498 Reviewed-by: lizzie <lizzie@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
51 lines
1.2 KiB
C++
51 lines
1.2 KiB
C++
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
// SPDX-FileCopyrightText: 2024 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QWidget>
|
|
#include "yuzu/configuration/configuration_shared.h"
|
|
|
|
class QCheckBox;
|
|
class QLineEdit;
|
|
class QDateTimeEdit;
|
|
namespace Core {
|
|
class System;
|
|
}
|
|
|
|
namespace Ui {
|
|
class ConfigureApplets;
|
|
}
|
|
|
|
namespace ConfigurationShared {
|
|
class Builder;
|
|
}
|
|
|
|
class ConfigureApplets : public ConfigurationShared::Tab {
|
|
public:
|
|
explicit ConfigureApplets(Core::System& system_,
|
|
std::shared_ptr<std::vector<ConfigurationShared::Tab*>> group,
|
|
const ConfigurationShared::Builder& builder,
|
|
QWidget* parent = nullptr);
|
|
~ConfigureApplets() override;
|
|
|
|
void ApplyConfiguration() override;
|
|
void SetConfiguration() override;
|
|
|
|
private:
|
|
void changeEvent(QEvent* event) override;
|
|
void RetranslateUI();
|
|
|
|
void Setup(const ConfigurationShared::Builder& builder);
|
|
|
|
std::vector<std::function<void(bool)>> apply_funcs{};
|
|
|
|
std::unique_ptr<Ui::ConfigureApplets> ui;
|
|
bool enabled = false;
|
|
|
|
Core::System& system;
|
|
};
|