Skip to content

Commit

Permalink
fix(safari): add group to shared CFPrefsPlistSource ID, fix WebEidSta…
Browse files Browse the repository at this point in the history
…rting checking, add logging to web-eid-safari app

Signed-off-by: Mart Somermaa <mrts@users.noreply.github.com>
  • Loading branch information
mrts committed Sep 13, 2021
1 parent 9b75a1f commit 8cc0cc3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/mac/main.mm
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ void setSafariExtensionEnabled(bool value) {

int main(int argc, char* argv[])
{
id starting = takeValue(WebEidStarting);
NSLog(@"web-eid-safari: is starting %@", starting);

Q_INIT_RESOURCE(web_eid_resources);
Q_INIT_RESOURCE(translations);

Expand All @@ -171,6 +174,8 @@ int main(int argc, char* argv[])

try {
if (auto args = app.parseArgs()) {
NSLog(@"web-eid-safari: running with arguments");

Controller controller(std::move(args));

QObject::connect(&controller, &Controller::quit, &app, &QApplication::quit);
Expand All @@ -187,8 +192,6 @@ int main(int argc, char* argv[])
qCritical() << error;
}

id starting = takeValue(WebEidStarting);
NSLog(@"web-eid-safari: is starting %@", starting);
if (![(NSNumber*)starting boolValue]) {
WebEidDialog::showAboutPage();
}
Expand Down

0 comments on commit 8cc0cc3

Please sign in to comment.