mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-06 23:57:39 +03:00
fix
This commit is contained in:
parent
f457ed021d
commit
4097319286
@ -358,15 +358,6 @@ const std::string& Epub::getLanguage() const {
|
|||||||
return bookMetadataCache->coreMetadata.language;
|
return bookMetadataCache->coreMetadata.language;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string& Epub::getLanguage() const {
|
|
||||||
static std::string blank;
|
|
||||||
if (!bookMetadataCache || !bookMetadataCache->isLoaded()) {
|
|
||||||
return blank;
|
|
||||||
}
|
|
||||||
|
|
||||||
return bookMetadataCache->coreMetadata.language;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string Epub::getCoverBmpPath(bool cropped) const {
|
std::string Epub::getCoverBmpPath(bool cropped) const {
|
||||||
const auto coverFileName = "cover" + cropped ? "_crop" : "";
|
const auto coverFileName = "cover" + cropped ? "_crop" : "";
|
||||||
return cachePath + "/" + coverFileName + ".bmp";
|
return cachePath + "/" + coverFileName + ".bmp";
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
// Define the static settings list
|
// Define the static settings list
|
||||||
namespace {
|
namespace {
|
||||||
constexpr int settingsCount = 19;
|
constexpr int settingsCount = 20;
|
||||||
const SettingInfo settingsList[settingsCount] = {
|
const SettingInfo settingsList[settingsCount] = {
|
||||||
// Should match with SLEEP_SCREEN_MODE
|
// Should match with SLEEP_SCREEN_MODE
|
||||||
SettingInfo::Enum("Sleep Screen", &CrossPointSettings::sleepScreen, {"Dark", "Light", "Custom", "Cover", "None"}),
|
SettingInfo::Enum("Sleep Screen", &CrossPointSettings::sleepScreen, {"Dark", "Light", "Custom", "Cover", "None"}),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user