- Remove organization name for configuration

- Remove Top Bar Menu for Windows and Linux
- Set Log file name to executable name
This commit is contained in:
Julien Wadel 2020-02-28 12:00:31 +01:00
parent 1d0e13ee21
commit f0da3d5679
3 changed files with 7 additions and 4 deletions

View file

@ -57,8 +57,7 @@ AppController::AppController (int &argc, char *argv[]) {
// Do not use APPLICATION_NAME here.
// The EXECUTABLE_NAME will be used in qt standard paths. It's our goal.
QCoreApplication::setApplicationName(EXECUTABLE_NAME);
QCoreApplication::setApplicationVersion(LINPHONE_QT_GIT_VERSION);
QApplication::setOrganizationName(QString(APPLICATION_VENDOR).replace(' ', '-'));
QCoreApplication::setApplicationVersion(LINPHONE_QT_GIT_VERSION);
QApplication::setOrganizationDomain(APPLICATION_ID);
mApp = new App(argc, argv);

View file

@ -204,6 +204,7 @@ void Logger::init (const shared_ptr<linphone::Config> &config) {
}
linphone::Core::setLogCollectionPath(Utils::appStringToCoreString(folder));
linphone::Core::setLogCollectionPrefix(EXECUTABLE_NAME);
linphone::Core::setLogCollectionMaxFileSize(MaxLogsCollectionSize);
mInstance->enable(SettingsModel::getLogsEnabled(config));

View file

@ -200,7 +200,10 @@ ApplicationWindow {
}
}
}
MainWindowTopMenuBar{}
Loader{
active:Qt.platform.os === 'osx'
sourceComponent:MainWindowTopMenuBar{}
}
// -----------------------------------------------------------------------
// Content.
// -----------------------------------------------------------------------
@ -271,7 +274,7 @@ ApplicationWindow {
Layout.fillWidth: true
source: 'Home.qml'
}
}
}
}
}