mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 06:45:49 +03:00
Allow to open log window via command line to already running client
Issue: #4098
This commit is contained in:
parent
687eb9665d
commit
feb770eca7
1 changed files with 4 additions and 0 deletions
|
@ -520,8 +520,12 @@ void Application::slotParseMessage(const QString &msg, QObject *)
|
|||
if (msg.startsWith(QLatin1String("MSG_PARSEOPTIONS:"))) {
|
||||
const int lengthOfMsgPrefix = 17;
|
||||
QStringList options = msg.mid(lengthOfMsgPrefix).split(QLatin1Char('|'));
|
||||
_showLogWindow = false;
|
||||
parseOptions(options);
|
||||
setupLogging();
|
||||
if (_showLogWindow) {
|
||||
_gui->slotToggleLogBrowser(); // _showLogWindow is set in parseOptions.
|
||||
}
|
||||
} else if (msg.startsWith(QLatin1String("MSG_SHOWMAINDIALOG"))) {
|
||||
qCInfo(lcApplication) << "Running for" << _startedAt.elapsed() / 1000.0 << "sec";
|
||||
if (_startedAt.elapsed() < 10 * 1000) {
|
||||
|
|
Loading…
Reference in a new issue