Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mse-ios
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Innovation
mse-ios
Commits
5aa4488e
Commit
5aa4488e
authored
Jan 23, 2015
by
Steve Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added reset to settings bundle
parent
ca2edd07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
mseclient/mseclient-ios/Settings.bundle/Root.plist
mseclient/mseclient-ios/Settings.bundle/Root.plist
+10
-0
mseclient/mseclient-ios/ViewController.mm
mseclient/mseclient-ios/ViewController.mm
+15
-2
No files found.
mseclient/mseclient-ios/Settings.bundle/Root.plist
View file @
5aa4488e
...
...
@@ -4,6 +4,16 @@
<dict>
<key>
PreferenceSpecifiers
</key>
<array>
<dict>
<key>
Type
</key>
<string>
PSToggleSwitchSpecifier
</string>
<key>
Title
</key>
<string>
Reset
</string>
<key>
Key
</key>
<string>
Reset
</string>
<key>
DefaultValue
</key>
<false/>
</dict>
<dict>
<key>
Type
</key>
<string>
PSToggleSwitchSpecifier
</string>
...
...
mseclient/mseclient-ios/ViewController.mm
View file @
5aa4488e
...
...
@@ -80,10 +80,17 @@ static NSString *const kReceiverAppID = [NSString stringWithFormat: @"%s", MSE_C
if (guestObj == nil) {
[defaults setBool: true forKey: @"GuestMode"];
[defaults synchronize];
[defaults synchronize];
}
NSObject * resetObj = [defaults objectForKey:@"Reset"];
if (resetObj == nil) {
[defaults setBool: false forKey: @"Reset"];
[defaults synchronize];
}
guestMode = [defaults boolForKey:@"GuestMode"];
bool reset = [defaults boolForKey:@"Reset"];
pageLoaded = false;
...
...
@@ -109,7 +116,13 @@ static NSString *const kReceiverAppID = [NSString stringWithFormat: @"%s", MSE_C
self.deviceMap = [NSMutableDictionary dictionaryWithCapacity:10];
self.deviceID = nil;
[self generateURL: false];
[self generateURL: reset];
if (reset) {
// Turn off the reset switch - use once.
[defaults setBool: false forKey: @"Reset"];
[defaults synchronize];
}
[self navigateHome];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment