diff options
Diffstat (limited to 'glances/config.py')
-rw-r--r-- | glances/config.py | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/glances/config.py b/glances/config.py index 5dec2c12..7138e48c 100644 --- a/glances/config.py +++ b/glances/config.py @@ -2,20 +2,10 @@ # # This file is part of Glances. # -# Copyright (C) 2019 Nicolargo <nicolas@nicolargo.com> +# SPDX-FileCopyrightText: 2022 Nicolas Hennion <nicolas@nicolargo.com> # -# Glances is free software; you can redistribute it and/or modify -# it under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# SPDX-License-Identifier: LGPL-3.0-only # -# Glances is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. """Manage the configuration file.""" @@ -182,11 +172,7 @@ class Config(object): if not self.parser.has_section('global'): self.parser.add_section('global') self.set_default('global', 'strftime_format', '') - - # check_update - if not self.parser.has_section('global'): - self.parser.add_section('global') - self.set_default('global', 'check_update', 'false') + self.set_default('global', 'check_update', 'true') # Quicklook if not self.parser.has_section('quicklook'): |