Skip to content

Commit

Permalink
core: reset selected_font when clearing fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
bi4k8 authored and bi4k8 committed May 9, 2023
1 parent 00166b4 commit c406177
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/conky.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1874,10 +1874,12 @@ void clean_up(void) {
for (auto output : display_outputs()) output->cleanup();
conky::shutdown_display_outputs();
#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
// loaded
#endif /* BUILD_GUI */
selected_font = 0;
}
#endif /* BUILD_GUI */

if (info.first_process != nullptr) {
free_all_processes();
Expand Down

0 comments on commit c406177

Please sign in to comment.