diff --git a/resources/descriptions/NDWI.md b/resources/descriptions/NDWI.md index 2a1dfb127..5aca6c25e 100644 --- a/resources/descriptions/NDWI.md +++ b/resources/descriptions/NDWI.md @@ -20,4 +20,4 @@ Cloud dependent. ### References -Gao, Bo-Cai (1996). "NDWI—A normalized difference water index for remote sensing of vegetation liquid water from space" (PDF). Remote Sensing of Environment. [doi:10.1016/S0034-4257(96)00067-3](https://doi.org/10.1016%2FS0034-4257%2896%2900067-3) +Gao, Bo-Cai (1996). "NDWI—A normalized difference water index for remote sensing of vegetation liquid water from space" (PDF). Remote Sensing of Environment. doi:10.1016/S0034-4257(96)00067-3. [View Article](https://doi.org/10.1016%2FS0034-4257%2896%2900067-3) diff --git a/resources/descriptions/NightFire.md b/resources/descriptions/NightFire.md index d11d3105d..5f2f9e546 100644 --- a/resources/descriptions/NightFire.md +++ b/resources/descriptions/NightFire.md @@ -27,4 +27,4 @@ Currently tested on data from Brazil. ### References -1. [S. Boles and D. L. Verbyla, “Comparison of three AVHRR-Based fire Detection Algorithms for Interior Alaska,” Remote Sensing of Environment, vol. 72, no. 1, pp. 1–16, Apr. 2000, doi: 10.1016/s0034-4257(99)00079-6.](https://doi.org/10.1016/S0034-4257(99)00079-6) +1. S. Boles and D. L. Verbyla, “Comparison of three AVHRR-Based fire Detection Algorithms for Interior Alaska,” Remote Sensing of Environment, vol. 72, no. 1, pp. 1–16, Apr. 2000, doi: 10.1016/s0034-4257(99)00079-6. [View Article](https://doi.org/10.1016/S0034-4257(99)00079-6) diff --git a/src-core/common/widgets/markdown_helper.cpp b/src-core/common/widgets/markdown_helper.cpp index be1d1369b..4256b88c0 100644 --- a/src-core/common/widgets/markdown_helper.cpp +++ b/src-core/common/widgets/markdown_helper.cpp @@ -77,16 +77,12 @@ namespace widgets MarkdownHelper::MarkdownHelper() { - } - - void MarkdownHelper::init() - { + mdConfig.linkCallback = link_callback; + mdConfig.imageCallback = image_callback; } void MarkdownHelper::render() { - mdConfig.linkCallback = link_callback; - mdConfig.imageCallback = image_callback; mdConfig.headingFormats[0] = {style::bigFont, true}; mdConfig.headingFormats[1] = {style::bigFont, true}; mdConfig.headingFormats[2] = {style::baseFont, true}; diff --git a/src-core/common/widgets/markdown_helper.h b/src-core/common/widgets/markdown_helper.h index eed979418..22cd08867 100644 --- a/src-core/common/widgets/markdown_helper.h +++ b/src-core/common/widgets/markdown_helper.h @@ -20,7 +20,6 @@ namespace widgets public: MarkdownHelper(); - void init(); void render(); void set_md(std::string md); }; diff --git a/src-interface/main_ui.cpp b/src-interface/main_ui.cpp index 31453c7b1..267d3e39f 100644 --- a/src-interface/main_ui.cpp +++ b/src-interface/main_ui.cpp @@ -52,7 +52,6 @@ namespace satdump std::ifstream ifs(resources::getResourcePath("credits.md")); std::string credits_markdown((std::istreambuf_iterator(ifs)), (std::istreambuf_iterator())); credits_md.set_md(credits_markdown); - credits_md.init(); registerApplications(); registerViewerHandlers();