fix: properly handle CLI arguments (#2368)

Fix CLI arguments not being respected. This happened due to the addition of category-based logging (--help, --version) and changes to the window loading ( --channels), respectively.

When handling --channels, I took the liberty to refactor the previous version of window description (which relied on generating JSON) to directly building the WindowLayout.
This commit is contained in:
Leon Richardt
2021-01-23 16:26:42 +01:00
committed by GitHub
parent 55dd09a9f0
commit 1b75dc1e2c
6 changed files with 140 additions and 81 deletions
+2
View File
@@ -23,6 +23,8 @@ enum class SettingsDialogPreference;
class WindowManager final : public Singleton
{
public:
static const QString WINDOW_LAYOUT_FILENAME;
WindowManager();
static void encodeChannel(IndirectChannel channel, QJsonObject &obj);