Skip to content

Commit

Permalink
Merge pull request #67 from italia/bugfixing
Browse files Browse the repository at this point in the history
Added log collection and cleaning features together with the option to hide or show the CIE ID tutorial at launch.
  • Loading branch information
aantetomaso authored Oct 10, 2024
2 parents 4298a1e + a242f56 commit 32d55ad
Show file tree
Hide file tree
Showing 812 changed files with 34,859 additions and 424 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified AUTHORS
100644 → 100755
Empty file.
Empty file modified AbilitaCIE/AbilitaCIE.entitlements
100644 → 100755
Empty file.
Empty file modified AbilitaCIE/AppDelegate.h
100644 → 100755
Empty file.
Empty file modified AbilitaCIE/AppDelegate.m
100644 → 100755
Empty file.
Empty file modified AbilitaCIE/Assets.xcassets/AppIcon.appiconset/CIE Logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified AbilitaCIE/Assets.xcassets/AppIcon.appiconset/Contents.json
100644 → 100755
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file modified AbilitaCIE/Assets.xcassets/Contents.json
100644 → 100755
Empty file.
Empty file modified AbilitaCIE/Base.lproj/Main.storyboard
100644 → 100755
Empty file.
Empty file modified AbilitaCIE/Info.plist
100644 → 100755
Empty file.
Empty file modified AbilitaCIE/ViewController.h
100644 → 100755
Empty file.
Empty file modified AbilitaCIE/ViewController.mm
100644 → 100755
Empty file.
Empty file modified AbilitaCIE/help.html
100644 → 100755
Empty file.
Empty file modified AbilitaCIE/main.m
100644 → 100755
Empty file.
Empty file modified CIE ID/AES.h
100644 → 100755
Empty file.
Empty file modified CIE ID/AES.m
100644 → 100755
Empty file.
Empty file modified CIE ID/AppDelegate.h
100644 → 100755
Empty file.
24 changes: 21 additions & 3 deletions CIE ID/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@
#include "../cie-pkcs11/Crypto/CryptoUtil.h"
#include "../cie-pkcs11/Util/UUCProperties.h"

USING_NAMESPACE(CryptoPP);
#import "PreferencesManager.h"
#import "MainViewController.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h> //strlen
#include <sys/socket.h>
#include <arpa/inet.h> //inet_addr
#include <unistd.h> //write
#include "../cie-pkcs11/Crypto/CryptoUtil.h"
#include "../cie-pkcs11/Util/UUCProperties.h"

USING_NAMESPACE(CryptoPP);

@interface AppDelegate ()
Expand All @@ -26,6 +39,7 @@ @interface AppDelegate ()
@property NSPopover* popover;
@property NSTextField* messageLabel;
@property PreferencesManager* prefManager;
@property (strong, nonatomic) MainViewController *mainViewController;
@end

@implementation AppDelegate
Expand All @@ -49,8 +63,8 @@ - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sende
- (BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)sender
{
if ([[_prefManager getConfigKeyValue:@"RUN_IN_BACKGROUND"] isEqual: @"YES"]) {
if (!([NSApp activationPolicy] == NSApplicationActivationPolicyAccessory))
[self switchToBackgroundMode];
if (([NSApp activationPolicy] == NSApplicationActivationPolicyRegular))
[NSApp unhide: NSApplication.sharedApplication];
return NO;
} else {
return YES;
Expand All @@ -68,8 +82,12 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
_prefManager = [[PreferencesManager alloc] init];
_closeAppFromStatusBar = NO;

_prefManager = [[PreferencesManager alloc] init];
_closeAppFromStatusBar = NO;

if ([NSRunningApplication runningApplicationsWithBundleIdentifier: NSBundle.mainBundle.bundleIdentifier].count > 1)
{
_closeAppFromStatusBar = YES;
_closeAppFromStatusBar = YES;
[NSApplication.sharedApplication terminate:self];
}
Expand Down Expand Up @@ -99,7 +117,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {

- (IBAction)openCIEID:(id)sender {
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
[NSApp unhide: NSApplication.sharedApplication];
[[NSApplication sharedApplication] unhide:nil];
}

- (IBAction)killCIEID:(id)sender {
Expand Down
Empty file modified CIE ID/AppLogger.h
100644 → 100755
Empty file.
9 changes: 6 additions & 3 deletions CIE ID/AppLogger.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ - (void)log:(NSString *)message withMessageLevel:(AppLogLevel)messageLevel {
- (void)writeToLogFile:(NSString *)message {
NSDate *date;
NSDateFormatter *dateFormatter;
NSFileManager *fileManager;
NSString *currentDate;
NSString *logFolder;
NSString *logFilePath;
NSString *timestamp;
NSString *timestampedMessage;
Expand All @@ -88,12 +88,15 @@ - (void)writeToLogFile:(NSString *)message {
currentDate = [dateFormatter stringFromDate:date];
[dateFormatter setDateFormat:@"YYYY-MM-dd HH:mm:ss"];
timestamp = [dateFormatter stringFromDate:date];
logFilePath = [NSString stringWithFormat:@"%@/.CIEPKI/CIEID_%@.log",
NSHomeDirectory(),
logFolder = [[[[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:@"group.it.ipzs.SoftwareCIE"] path] stringByAppendingString:@"/Library/Caches/CIEPKI/"];
logFilePath = [NSString stringWithFormat:@"%@CIEID_%@.log",
logFolder,
currentDate];


timestampedMessage = [NSString stringWithFormat:@"%@ %@", timestamp, message];
NSLog(@"writeToLogFile: logFilePath:%@ message:%@", logFilePath, timestampedMessage);
NSLog(@"writeToLogFile: logFilePath:%@ message:%@", logFilePath, timestampedMessage);
@try {
// [timestampedMessage writeToFile:logFilePath atomically:YES encoding:NSUTF8StringEncoding error:nil];
FILE *fp = fopen([logFilePath UTF8String], "a+");
Expand Down
Binary file not shown.
Binary file not shown.
Empty file modified CIE ID/Assets.xcassets/Contents.json
100644 → 100755
Empty file.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CIE ID/Assets.xcassets/Coppia file firma.imageset/Contents.json
100644 → 100755
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CIE ID/Assets.xcassets/Risorsa 14.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/Risorsa 14.imageset/Risorsa 21.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CIE ID/Assets.xcassets/Risorsa 15.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/Risorsa 15.imageset/Risorsa 20.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CIE ID/Assets.xcassets/Risorsa 16.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/Risorsa 16.imageset/Risorsa 22.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CIE ID/Assets.xcassets/Risorsa 17.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/Risorsa 17.imageset/Risorsa 23.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CIE ID/Assets.xcassets/Risorsa 18.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/Risorsa 18.imageset/Risorsa 24.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CIE ID/Assets.xcassets/Risorsa 19.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/Risorsa 19.imageset/Risorsa 25.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CIE ID/Assets.xcassets/back.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/back.imageset/back.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CIE ID/Assets.xcassets/back.imageset/back@2x.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CIE ID/Assets.xcassets/back.imageset/back@3x.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified CIE ID/Assets.xcassets/calendar.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/calendar.imageset/calendar.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/check.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/check.imageset/check-1.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/check.imageset/check-2.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/check.imageset/check.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/cie.imageset/CIE~universal@1x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/cie.imageset/CIE~universal@2x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/cie.imageset/CIE~universal@3x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/cie.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/cross.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/cross.imageset/cross-1.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/cross.imageset/cross-2.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/cross.imageset/cross.png
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/customTextColor.colorset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/customViewColor.colorset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/down.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/down.imageset/down.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/down.imageset/down@2x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/down.imageset/down@3x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/firma.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/firma.imageset/firma.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/firma.imageset/firma@2x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/firma.imageset/firma@3x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/firma_gray .imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/firma_gray .imageset/firma_gray @1x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/flusso_intro_01.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/flusso_intro_02.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/forward_custom.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/forward_custom.imageset/forward.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/forward_custom.imageset/forward@2x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/forward_custom.imageset/forward@3x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/generica.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/generica.imageset/generica.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/generica.imageset/generica@2x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/generica.imageset/generica@3x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/green_checkbox.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/icona_aiuto.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/icona_aiuto.imageset/icona_aiuto-1.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/icona_aiuto.imageset/icona_aiuto-2.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/icona_aiuto.imageset/icona_aiuto.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/icona_aiuto.imageset/icona_aiuto@2x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/icona_assistenza.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/icona_cambio_Pin.imageset/Contents.json
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified CIE ID/Assets.xcassets/icona_lucchetto.imageset/Contents.json
100644 → 100755
Empty file.
Empty file.
Empty file modified CIE ID/Assets.xcassets/icona_tutorial.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/leftTextColor.colorset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/logo-cie.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/logo-cie.imageset/logo-cie@2x copia.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/logoIPZS.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/logoIPZS.imageset/logoIPZS-1.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/logoIPZS.imageset/logoIPZS-2.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/logoIPZS.imageset/logoIPZS.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/logoIPZS.imageset/logoIPZS@2x-1.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/logoIPZS.imageset/logoIPZS@2x-2.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/logoIPZS.imageset/logoIPZS@2x.png
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/medal.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/medal.imageset/medal.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/orange_checkbox.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/p7m.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/p7m.imageset/p7m.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/p7m.imageset/p7m@2x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/p7m.imageset/p7m@3x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/p7m_gray.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/p7m_gray.imageset/p7m@2x_gray-1.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/p7m_gray.imageset/p7m@2x_gray-2.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/p7m_gray.imageset/p7m@2x_gray.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/pdf.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/pdf.imageset/pdf.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/pdf.imageset/pdf@2x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/pdf.imageset/pdf@3x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/pdf_gray.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/pdf_gray.imageset/pdf@2x_gray-1.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/pdf_gray.imageset/pdf@2x_gray-2.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/pdf_gray.imageset/pdf@2x_gray.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/settings_icon.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/settings_icon.imageset/settings_icon.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/up.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/up.imageset/up.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/up.imageset/up@2x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/up.imageset/up@3x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/upload.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/upload.imageset/upload.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/upload.imageset/upload@2x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/upload.imageset/upload@3x.png
100644 → 100755
Empty file modified CIE ID/Assets.xcassets/user.imageset/Contents.json
100644 → 100755
Empty file.
Empty file modified CIE ID/Assets.xcassets/user.imageset/user.png
100644 → 100755
127 changes: 102 additions & 25 deletions CIE ID/Base.lproj/Main.storyboard

Large diffs are not rendered by default.

Empty file modified CIE ID/BorderedView.swift
100644 → 100755
Empty file.
Empty file modified CIE ID/CIE ID-Bridging-Header.h
100644 → 100755
Empty file.
Empty file modified CIE ID/CIEView.xib
100644 → 100755
Empty file.
Empty file modified CIE ID/CIE_ID.entitlements
100644 → 100755
Empty file.
Empty file modified CIE ID/Carousel/CarouselCard.h
100644 → 100755
Empty file.
Empty file modified CIE ID/Carousel/CarouselCard.m
100644 → 100755
Empty file.
Empty file modified CIE ID/Carousel/CarouselCard.xib
100644 → 100755
Empty file.
Empty file modified CIE ID/Carousel/CarouselView.h
100644 → 100755
Empty file.
Empty file modified CIE ID/Carousel/CarouselView.m
100644 → 100755
Empty file.
55 changes: 24 additions & 31 deletions CIE ID/Carousel/CarouselView.xib
100644 → 100755

Large diffs are not rendered by default.

Empty file modified CIE ID/ChangeView.h
100644 → 100755
Empty file.
Empty file modified CIE ID/ChangeView.m
100644 → 100755
Empty file.
Empty file modified CIE ID/Cie.h
100644 → 100755
Empty file.
Empty file modified CIE ID/Cie.m
100644 → 100755
Empty file.
Empty file modified CIE ID/CieList.h
100644 → 100755
Empty file.
Empty file modified CIE ID/CieList.m
100644 → 100755
Empty file.
Empty file modified CIE ID/DropView.swift
100644 → 100755
Empty file.
Empty file modified CIE ID/Fonts/Allura-Regular.ttf
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions CIE ID/Info.plist
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
<string>Copyright © 2018-2019 IPZS. All rights reserved.</string>
<key>NSMainStoryboardFile</key>
<string>Main</string>
<key>LSUIElement</key>
<true/>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
Expand Down
Empty file modified CIE ID/IntroViewController.h
100644 → 100755
Empty file.
9 changes: 5 additions & 4 deletions CIE ID/IntroViewController.m
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
//

#import "IntroViewController.h"
#import "PreferencesManager.h"

@interface IntroViewController ()

@interface IntroViewController ()
@property PreferencesManager *prefManager;
@end

@implementation IntroViewController
Expand All @@ -19,7 +21,7 @@ - (void)viewDidLoad {
// Do view setup here.

//NSUserDefaults.standardUserDefaults

_prefManager = PreferencesManager.sharedInstance;
self.preferredContentSize = self.view.frame.size;

self.view.window.delegate = self;
Expand All @@ -42,8 +44,7 @@ - (IBAction)start:(id)sender
{
if(_checkDontShowAnymore.state == NSOnState)
{
[NSUserDefaults.standardUserDefaults setObject:@"OK" forKey:@"dontShowIntro"];
[NSUserDefaults.standardUserDefaults synchronize];
[_prefManager setConfigKeyValue:@"SHOW_TUTORIAL": @"NO"];
}

[self dismissViewController:self];
Expand Down
3 changes: 3 additions & 0 deletions CIE ID/MainViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ NS_ASSUME_NONNULL_BEGIN
@property (weak) IBOutlet NSButton *rbLoggingLibInfo;
@property (weak) IBOutlet NSButton *rbLoggingLibDebug;
@property (weak) IBOutlet NSButton *cbShouldRunInBackground;
@property (weak) IBOutlet NSButton *cbShowTutorial;
@property (weak) IBOutlet NSButton *collectLogButton;
@property (weak) IBOutlet NSButton *deleteLogButton;

@property AppLogLevel logLevelApp;
@property AppLogLevel logLevelLib;
Expand Down
Loading

0 comments on commit 32d55ad

Please sign in to comment.