Cleanup
Some checks are pending
debian-build / build (push) Waiting to run
Push to master / Check Formatting 🔍 (push) Waiting to run
Push to master / Build Project 🧱 (push) Waiting to run
Push to master / Create Release 🛫 (push) Blocked by required conditions

* Member access
* Refresh settings on show to ensure "repeat" changes are visible
This commit is contained in:
WarmUpTill 2026-04-02 22:06:51 +02:00 committed by WarmUpTill
parent 088881b674
commit 119fac17bf
2 changed files with 18 additions and 9 deletions

View File

@ -710,6 +710,12 @@ void MacroConditionDateEdit::UpdateEntryData()
SetWidgetStatus();
}
void MacroConditionDateEdit::showEvent(QShowEvent *event)
{
const QSignalBlocker b(this);
UpdateEntryData();
}
void MacroConditionDateEdit::SetupSimpleView()
{
SetLayoutVisible(_simpleLayout, true);

View File

@ -107,6 +107,16 @@ signals:
void HeaderInfoChanged(const QString &);
protected:
void showEvent(QShowEvent *event) override;
private:
void SetupSimpleView();
void SetupAdvancedView();
void SetupPatternView();
void SetWidgetStatus();
void ShowFirstDateSelection(bool visible);
void ShowSecondDateSelection(bool visible);
QComboBox *_weekCondition;
DayOfWeekSelector *_days;
QCheckBox *_ignoreWeekTime;
@ -134,16 +144,9 @@ protected:
QHBoxLayout *_repeatUpdateLayout;
QHBoxLayout *_patternLayout;
std::shared_ptr<MacroConditionDate> _entryData;
private:
void SetupSimpleView();
void SetupAdvancedView();
void SetupPatternView();
void SetWidgetStatus();
void ShowFirstDateSelection(bool visible);
void ShowSecondDateSelection(bool visible);
QTimer _timer;
std::shared_ptr<MacroConditionDate> _entryData;
bool _loading = true;
};