finished basic ini skeleton

This commit is contained in:
Hane 2024-12-06 19:59:09 +01:00
commit adca5111f6
4 changed files with 83 additions and 11 deletions

View file

@ -941,6 +941,8 @@ HeaderWidget::HeaderWidget(QWidget *parent) : QWidget(parent) {
}
connect(channels, &QCheckBox::stateChanged, [this, parent](){
set->setValue("show_channels", channels->isChecked(), sizeof("show_channels"));
if(!OverseerHandler::settingsPath.empty())
set->save(OverseerHandler::settingsPath.c_str());
if(parent)
QCoreApplication::instance()->postEvent
(parent, new QEvent((QEvent::Type)CustomQEvent::RecomposeMainWindow));