mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-07-31 21:22:27 -04:00
Better initialization of the decoded text font.
This commit is contained in:
parent
9e6de4fab4
commit
0fd1f748fd
@ -663,9 +663,9 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
|||||||
connect (ui->decodedTextBrowser2, &DisplayText::erased, this, &MainWindow::rx_frequency_activity_cleared);
|
connect (ui->decodedTextBrowser2, &DisplayText::erased, this, &MainWindow::rx_frequency_activity_cleared);
|
||||||
|
|
||||||
// initialize decoded text font and hook up font change signals
|
// initialize decoded text font and hook up font change signals
|
||||||
// defer initialization until after construction otherwise menu
|
// defer initialization until after construction otherwise menu fonts do not get set
|
||||||
// fonts do not get set
|
// with 50 ms delay we are on the save side
|
||||||
QTimer::singleShot (0, this, SLOT (initialize_fonts ()));
|
QTimer::singleShot (50, this, SLOT (initialize_fonts ()));
|
||||||
connect (&m_config, &Configuration::text_font_changed, [this] (QFont const& font) {
|
connect (&m_config, &Configuration::text_font_changed, [this] (QFont const& font) {
|
||||||
set_application_font (font);
|
set_application_font (font);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user