mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05:00
1c698bff83
As bitDHT is very noisy and keeps the radio always on on mobile thus having huge impact on the battery life, DHT is now turned on only when the App is interacting with the user byt default, on the option tab it is possible to change this behaviour to set it always off, always on or active depending on user interaction. To handle settings AppSettings singleton has been added and a button on the sidebar to edit configurations too
28 lines
871 B
QML
28 lines
871 B
QML
/*
|
|
* RetroShare Android QML App
|
|
* Copyright (C) 2018 Gioacchino Mazzurco <gio@eigenlab.org>
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This program 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 Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
pragma Singleton
|
|
|
|
import Qt.labs.settings 1.0
|
|
|
|
Settings
|
|
{
|
|
property string dhtMode: "Interactive"
|
|
}
|
|
|