fix: define declared method + insert new bar entries to config file list + rename Hyprsunset -> Nightlight
This commit is contained in:
@@ -3,23 +3,20 @@
|
||||
namespace ZShell::settings {
|
||||
|
||||
ChangeBatcher::ChangeBatcher(QObject* parent)
|
||||
: QObject(parent)
|
||||
, m_dirty(false) {}
|
||||
: QObject(parent), m_dirty(false) {}
|
||||
|
||||
void ChangeBatcher::dirty() {
|
||||
if (m_dirty)
|
||||
return;
|
||||
if (m_dirty) return;
|
||||
|
||||
m_dirty = true;
|
||||
QMetaObject::invokeMethod(this, &ChangeBatcher::flush, Qt::QueuedConnection);
|
||||
m_dirty = true;
|
||||
QMetaObject::invokeMethod(this, &ChangeBatcher::flush, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
void ChangeBatcher::flush() {
|
||||
if (!m_dirty)
|
||||
return;
|
||||
if (!m_dirty) return;
|
||||
|
||||
m_dirty = false;
|
||||
emit dirtied();
|
||||
m_dirty = false;
|
||||
emit dirtied();
|
||||
}
|
||||
|
||||
} // namespace ZShell::settings
|
||||
|
||||
Reference in New Issue
Block a user