Skip to content

Commit

Permalink
Adjust fortune dialog window size everytime the text changes
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 30, 2024
1 parent b9bbbb1 commit 00627e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dialogs/FortuneDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 00627e8

Please sign in to comment.