mayas piggy version
This commit is contained in:
parent
1f12d93300
commit
849cc91da8
10 changed files with 31 additions and 72 deletions
|
|
@ -36,7 +36,6 @@ void NavigationController::init(const QString &rootPath)
|
|||
auto rootDir = QDir(rootPath);
|
||||
if(!rootDir.exists()) return;
|
||||
mRootPath = rootPath;
|
||||
|
||||
add(mRootPath, mRootItem);
|
||||
|
||||
mNavList->setModelItems(mRootItem->getChildren());
|
||||
|
|
|
|||
|
|
@ -60,7 +60,13 @@ QString SettingsHandler::getShutdownScript() const
|
|||
|
||||
void SettingsHandler::initDefaults()
|
||||
{
|
||||
#ifdef ANDROID
|
||||
// three out of four devices report '4' as QStandardPaths::MusicLocation
|
||||
//mDefaults.insert(rootPath, "/storage/self/primary/Music");
|
||||
mDefaults.insert(rootPath, QStandardPaths::writableLocation(QStandardPaths::MusicLocation));
|
||||
#else
|
||||
mDefaults.insert(rootPath, QStandardPaths::MusicLocation);
|
||||
#endif
|
||||
mDefaults.insert(enableEnergySaver, false);
|
||||
mDefaults.insert(timeout, 60);
|
||||
mDefaults.insert(shutdownScript, "/usr/local/sbin/do_shutdown.sh");
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ public:
|
|||
QString getProfile() const;
|
||||
bool isEnergySaverEnabled() const;
|
||||
int getEnergySaverTimeout() const;
|
||||
bool isVolumeControlsVisible() const;
|
||||
QString getShutdownScript() const;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue