mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 11:35:56 +08:00
Log state of font list cache.
This commit is contained in:
parent
4f2263a963
commit
2886d26fa0
@ -1363,7 +1363,16 @@ void GLGizmoEmboss::init_face_names() {
|
||||
// Zero value is used as uninitialized hash
|
||||
if (hash == 0) hash = 1;
|
||||
// check if it is same as last time
|
||||
if (m_face_names.hash == hash) return; // no new installed font
|
||||
if (m_face_names.hash == hash) {
|
||||
// no new installed font
|
||||
BOOST_LOG_TRIVIAL(info) << "Same FontNames hash, cache is used. "
|
||||
<< "For clear cache delete file: " << get_fontlist_cache_path().string();
|
||||
return;
|
||||
}
|
||||
|
||||
BOOST_LOG_TRIVIAL(info) << (m_face_names.hash == 0) ?
|
||||
"FontName list is generate from scratch." :
|
||||
"Hash are different. Only previous bad fonts are used and set again as bad";
|
||||
m_face_names.hash = hash;
|
||||
|
||||
// validation lambda
|
||||
|
Loading…
x
Reference in New Issue
Block a user