mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-16 01:37:49 +00:00
configure_hotkeys: Move conflict detection logic to IsUsedKey()
We don't need to extract the entire set of hotkeys into a list and then iterate through it. We can traverse the list and early-exit if we're able to.
This commit is contained in:
parent
c227927751
commit
0989921fb9
2 changed files with 15 additions and 14 deletions
|
@ -34,7 +34,6 @@ public:
|
|||
private:
|
||||
void Configure(QModelIndex index);
|
||||
bool IsUsedKey(QKeySequence key_sequence) const;
|
||||
QList<QKeySequence> GetUsedKeyList() const;
|
||||
|
||||
std::unique_ptr<Ui::ConfigureHotkeys> ui;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue