mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-12 19:06:36 +00:00
core: reset selected_font when clearing fonts
This commit is contained in:
parent
00166b49b5
commit
c406177d43
@ -1874,9 +1874,11 @@ void clean_up(void) {
|
|||||||
for (auto output : display_outputs()) output->cleanup();
|
for (auto output : display_outputs()) output->cleanup();
|
||||||
conky::shutdown_display_outputs();
|
conky::shutdown_display_outputs();
|
||||||
#ifdef BUILD_GUI
|
#ifdef BUILD_GUI
|
||||||
if (!display_output() || !display_output()->graphical())
|
if (!display_output() || !display_output()->graphical()) {
|
||||||
fonts.clear(); // in set_default_configurations a font is set but not
|
fonts.clear(); // in set_default_configurations a font is set but not
|
||||||
// loaded
|
// loaded
|
||||||
|
selected_font = 0;
|
||||||
|
}
|
||||||
#endif /* BUILD_GUI */
|
#endif /* BUILD_GUI */
|
||||||
|
|
||||||
if (info.first_process != nullptr) {
|
if (info.first_process != nullptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user