mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:14:37 +02:00
Android: enable mutltithreading public-ip / weather detection
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ cmake_dependent_option(ENABLE_LIBCJSON "Enable libcjson" ON "LINUX OR WIN32" OFF
|
||||
cmake_dependent_option(ENABLE_LIBNM "Enable libnm" ON "LINUX" OFF)
|
||||
cmake_dependent_option(ENABLE_FREETYPE "Enable freetype" ON "ANDROID" OFF)
|
||||
cmake_dependent_option(ENABLE_PULSE "Enable pulse" ON "LINUX OR BSD" OFF)
|
||||
cmake_dependent_option(ENABLE_THREADS "Enable multithreading" ON "Threads_FOUND AND NOT ANDROID" OFF)
|
||||
cmake_dependent_option(ENABLE_THREADS "Enable multithreading" ON "Threads_FOUND" OFF)
|
||||
cmake_dependent_option(ENABLE_BUFFER "Enable stdout buffer" ON "LINUX OR APPLE OR BSD OR WIN32 OR ANDROID" OFF)
|
||||
cmake_dependent_option(USE_WIN_NTAPI "Allow using internal NTAPI" ON "WIN32" OFF)
|
||||
|
||||
|
||||
+7
-4
@@ -1527,11 +1527,14 @@ int main(int argc, const char** argv)
|
||||
if(ffStrbufContainIgnCaseS(&data.structure, "CPUUsage"))
|
||||
ffPrepareCPUUsage();
|
||||
|
||||
if(ffStrbufContainIgnCaseS(&data.structure, "PublicIp"))
|
||||
ffPreparePublicIp(&instance);
|
||||
if(instance.config.multithreading)
|
||||
{
|
||||
if(ffStrbufContainIgnCaseS(&data.structure, "PublicIp"))
|
||||
ffPreparePublicIp(&instance);
|
||||
|
||||
if(ffStrbufContainIgnCaseS(&data.structure, "Weather"))
|
||||
ffPrepareWeather(&instance);
|
||||
if(ffStrbufContainIgnCaseS(&data.structure, "Weather"))
|
||||
ffPrepareWeather(&instance);
|
||||
}
|
||||
|
||||
ffStart(&instance);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user