mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-02-03 09:44:24 -05: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);
|
||||
|
||||
// initialize decoded text font and hook up font change signals
|
||||
// defer initialization until after construction otherwise menu
|
||||
// fonts do not get set
|
||||
QTimer::singleShot (0, this, SLOT (initialize_fonts ()));
|
||||
// defer initialization until after construction otherwise menu fonts do not get set
|
||||
// with 50 ms delay we are on the save side
|
||||
QTimer::singleShot (50, this, SLOT (initialize_fonts ()));
|
||||
connect (&m_config, &Configuration::text_font_changed, [this] (QFont const& font) {
|
||||
set_application_font (font);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user