fix: define declared method + insert new bar entries to config file list + rename Hyprsunset -> Nightlight
C++ / fmt (pull_request) Failing after 5s
C++ / build (pull_request) Failing after 10s
JS/TS / fmt (pull_request) Successful in 6s
C++ / clang-tidy (pull_request) Failing after 21s
JS/TS / lint (pull_request) Successful in 10s
Python / static (pull_request) Successful in 26s
Rust / build (pull_request) Successful in 47s
Rust / fmt (pull_request) Successful in 28s
Python / verify (pull_request) Successful in 1m39s
Rust / clippy (pull_request) Successful in 46s
C++ / fmt (pull_request) Failing after 5s
C++ / build (pull_request) Failing after 10s
JS/TS / fmt (pull_request) Successful in 6s
C++ / clang-tidy (pull_request) Failing after 21s
JS/TS / lint (pull_request) Successful in 10s
Python / static (pull_request) Successful in 26s
Rust / build (pull_request) Successful in 47s
Rust / fmt (pull_request) Successful in 28s
Python / verify (pull_request) Successful in 1m39s
Rust / clippy (pull_request) Successful in 46s
This commit is contained in:
@@ -5,23 +5,23 @@
|
||||
namespace ZShell::settings {
|
||||
|
||||
void ObjectQuarantine::insert(const QString& key, const QJsonValue& value) {
|
||||
m_quarantine.insert(key, value);
|
||||
m_quarantine.insert(key, value);
|
||||
}
|
||||
|
||||
bool ObjectQuarantine::remove(const QString& key) {
|
||||
return m_quarantine.remove(key);
|
||||
return m_quarantine.remove(key);
|
||||
}
|
||||
|
||||
bool ObjectQuarantine::isEmpty() const {
|
||||
return m_quarantine.isEmpty();
|
||||
return m_quarantine.isEmpty();
|
||||
}
|
||||
|
||||
QJsonValue ObjectQuarantine::apply(const QJsonValue& json) const {
|
||||
auto result = json.toObject();
|
||||
for (const auto& [key, value] : m_quarantine.asKeyValueRange())
|
||||
if (!result.contains(key)) // Don't clobber existing values
|
||||
result.insert(key, value);
|
||||
return result;
|
||||
auto result = json.toObject();
|
||||
for (const auto& [key, value] : m_quarantine.asKeyValueRange())
|
||||
if (!result.contains(key)) // Don't clobber existing values
|
||||
result.insert(key, value);
|
||||
return result;
|
||||
}
|
||||
|
||||
} // namespace ZShell::settings
|
||||
|
||||
Reference in New Issue
Block a user