Commit 90bd5a8c authored by Edric Milaret's avatar Edric Milaret Committed by Guillaume Roguez

autostart: add start minimized to commandline options

Refs #74811

Change-Id: Ia1c6929c2b46dc9815692e9dfe8be7350064fc90
parent cdc978bf
......@@ -50,7 +50,18 @@ main(int argc, char *argv[])
}
MainWindow w;
auto startMinimized = false;
for (auto string : QCoreApplication::arguments()) {
if (string == "-m" || string == "--minimized")
startMinimized = true;
}
if (not startMinimized)
w.show();
else
w.showMinimized();
QObject::connect(&a, &QApplication::aboutToQuit, [&a]() {
delete CallModel::instance();
......
......@@ -46,6 +46,7 @@ Utils::CreateLink(LPCWSTR lpszPathObj, LPCWSTR lpszPathLink) {
{
IPersistFile* ppf;
psl->SetPath(lpszPathObj);
psl->SetArguments(TEXT("--minimized"));
hres = psl->QueryInterface(IID_IPersistFile, (LPVOID*)&ppf);
if (SUCCEEDED(hres))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment