From 00627e83c3e3a43cfda2486d6febf3d256a84e5a Mon Sep 17 00:00:00 2001 From: pancake Date: Wed, 30 Oct 2024 10:47:43 +0100 Subject: [PATCH] Adjust fortune dialog window size everytime the text changes --- src/dialogs/FortuneDialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dialogs/FortuneDialog.cpp b/src/dialogs/FortuneDialog.cpp index f9bed19c..197915ea 100644 --- a/src/dialogs/FortuneDialog.cpp +++ b/src/dialogs/FortuneDialog.cpp @@ -18,8 +18,10 @@ FortuneDialog::FortuneDialog(QWidget *parent) connect(button, &QPushButton::clicked, this, &FortuneDialog::changeSentence); setModal(true); + adjustSize(); } void FortuneDialog::changeSentence() { label->setText(Core()->cmd("fo")); + adjustSize(); }