mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 18:35:57 +08:00
Log state of font list cache.
This commit is contained in:
parent
4f2263a963
commit
2886d26fa0
@ -1343,8 +1343,8 @@ void GLGizmoEmboss::init_face_names() {
|
|||||||
|
|
||||||
// try load cache
|
// try load cache
|
||||||
// Only not OS enumerated face has hash value 0
|
// Only not OS enumerated face has hash value 0
|
||||||
if (m_face_names.hash == 0) {
|
if (m_face_names.hash == 0) {
|
||||||
load(m_face_names);
|
load(m_face_names);
|
||||||
create_truncated_names();
|
create_truncated_names();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1363,7 +1363,16 @@ void GLGizmoEmboss::init_face_names() {
|
|||||||
// Zero value is used as uninitialized hash
|
// Zero value is used as uninitialized hash
|
||||||
if (hash == 0) hash = 1;
|
if (hash == 0) hash = 1;
|
||||||
// check if it is same as last time
|
// 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;
|
m_face_names.hash = hash;
|
||||||
|
|
||||||
// validation lambda
|
// validation lambda
|
||||||
|
Loading…
x
Reference in New Issue
Block a user