mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-11-05 02:46:56 +03:00
show paths only once and not all the time
This commit is contained in:
parent
1775ef4b0e
commit
87e514906e
@ -102,6 +102,18 @@ Application::Application(int &argc, char **argv, bool haltOnParseError)
|
||||
// Register types that are queued at runtime.
|
||||
qRegisterMetaType<git::Id>();
|
||||
|
||||
qDebug() << QString("App dir: %1").arg(Settings::appDir().absolutePath());
|
||||
qDebug() << QString("Doc dir: %1").arg(Settings::docDir().absolutePath());
|
||||
qDebug() << QString("Conf dir: %1").arg(Settings::confDir().absolutePath());
|
||||
qDebug() << QString("l18n dir: %1").arg(Settings::l10nDir().absolutePath());
|
||||
qDebug() << QString("dictionaries dir: %1")
|
||||
.arg(Settings::dictionariesDir().absolutePath());
|
||||
qDebug() << QString("lexer dir: %1").arg(Settings::lexerDir().absolutePath());
|
||||
qDebug()
|
||||
<< QString("themes dir: %1").arg(Settings::themesDir().absolutePath());
|
||||
qDebug() << QString("pluginsDir dir: %1")
|
||||
.arg(Settings::pluginsDir().absolutePath());
|
||||
|
||||
// Connect updater signals.
|
||||
connect(Updater::instance(), &Updater::sslErrors, this,
|
||||
&Application::handleSslErrors);
|
||||
@ -488,4 +500,4 @@ void Application::handleSslErrors(QNetworkReply *reply,
|
||||
reply->ignoreSslErrors(errors);
|
||||
settings.setValue("ssl/ignore", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,11 +48,7 @@ QString promptKey(Prompt::Kind kind) { return Prompt::key(kind); }
|
||||
|
||||
QDir rootDir() {
|
||||
QDir dir(QCoreApplication::applicationDirPath());
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
dir.cdUp(); // Contents
|
||||
#endif
|
||||
qDebug() << "Root dir: " << dir;
|
||||
dir.cdUp();
|
||||
|
||||
return dir;
|
||||
}
|
||||
@ -226,7 +222,6 @@ QDir Settings::confDir() {
|
||||
QDir dir = rootDir();
|
||||
if (!dir.cd("Resources"))
|
||||
dir = QDir(CONF_DIR);
|
||||
qDebug() << "Conf dir: " << dir;
|
||||
return dir;
|
||||
}
|
||||
|
||||
@ -234,15 +229,12 @@ QDir Settings::l10nDir() {
|
||||
QDir dir = confDir();
|
||||
if (!dir.cd("l10n"))
|
||||
dir = QDir(L10N_DIR); // For debugging search in source dir
|
||||
|
||||
qDebug() << "l10n dir: " << dir;
|
||||
return dir;
|
||||
}
|
||||
|
||||
QDir Settings::dictionariesDir() {
|
||||
QDir dir = confDir();
|
||||
dir.cd("dictionaries");
|
||||
qDebug() << "Dictionaries dir: " << dir;
|
||||
return dir;
|
||||
}
|
||||
|
||||
@ -250,21 +242,18 @@ QDir Settings::lexerDir() {
|
||||
QDir dir = confDir();
|
||||
if (!dir.cd("lexers"))
|
||||
dir = QDir(SCINTILLUA_LEXERS_DIR); // For debugging search in source dir
|
||||
qDebug() << "Lexers dir: " << dir;
|
||||
return dir;
|
||||
}
|
||||
|
||||
QDir Settings::themesDir() {
|
||||
QDir dir = confDir();
|
||||
dir.cd("themes");
|
||||
qDebug() << "Theme dir: " << dir;
|
||||
return dir;
|
||||
}
|
||||
|
||||
QDir Settings::pluginsDir() {
|
||||
QDir dir = confDir();
|
||||
dir.cd("plugins");
|
||||
qDebug() << "Plugins dir: " << dir;
|
||||
return dir;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user