Add setting to disable Content tab update indicator (#14827)

This commit is contained in:
rubenwardy 2024-07-22 15:35:47 +01:00 committed by GitHub
parent 768fd4adee
commit 60f8c02e18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

@ -280,7 +280,7 @@ end
return { return {
name = "content", name = "content",
caption = function() caption = function()
local update_count = update_detector.get_count() local update_count = core.settings:get_bool("contentdb_enable_updates_indicator") and update_detector.get_count() or 0
if update_count == 0 then if update_count == 0 then
return fgettext("Content") return fgettext("Content")
else else

@ -764,6 +764,10 @@ chat_font_size (Chat font size) int 0 0 72
# The URL for the content repository # The URL for the content repository
contentdb_url (ContentDB URL) string https://content.minetest.net contentdb_url (ContentDB URL) string https://content.minetest.net
# If enabled and you have ContentDB packages installed, Minetest may contact ContentDB to
# check for package updates when opening the mainmenu.
contentdb_enable_updates_indicator (Enable updates available indicator on content tab) bool true
# Comma-separated list of flags to hide in the content repository. # Comma-separated list of flags to hide in the content repository.
# "nonfree" can be used to hide packages which do not qualify as 'free software', # "nonfree" can be used to hide packages which do not qualify as 'free software',
# as defined by the Free Software Foundation. # as defined by the Free Software Foundation.

@ -402,6 +402,7 @@ void set_default_settings()
// ContentDB // ContentDB
settings->setDefault("contentdb_url", "https://content.minetest.net"); settings->setDefault("contentdb_url", "https://content.minetest.net");
settings->setDefault("contentdb_enable_updates_indicator", "true");
settings->setDefault("contentdb_max_concurrent_downloads", "3"); settings->setDefault("contentdb_max_concurrent_downloads", "3");
#ifdef __ANDROID__ #ifdef __ANDROID__