@@ -269,7 +269,7 @@ class InterfaceController: WKInterfaceController {
269269 ///
270270 /// Saves current track and waypoints as a GPX file, with a default filename of date and time.
271271 ///
272- @IBAction func saveButtonTapped( withReset : Bool = false ) {
272+ @IBAction func saveButtonTapped( ) {
273273 print ( " save Button tapped " )
274274 // ignore the save button if there is nothing to save.
275275 if ( gpxTrackingStatus == . notStarted) && !self . hasWaypoints {
@@ -281,10 +281,6 @@ class InterfaceController: WKInterfaceController {
281281 self . lastGpxFilename = filename
282282 //print(gpxString)
283283
284- if withReset {
285- self . gpxTrackingStatus = . notStarted
286- }
287-
288284 /// Just a 'done' button, without
289285 let action = WKAlertAction ( title: " Done " , style: . default) { }
290286
@@ -302,7 +298,8 @@ class InterfaceController: WKInterfaceController {
302298
303299 let cancelOption = WKAlertAction ( title: NSLocalizedString ( " CANCEL " , comment: " no comment " ) , style: . cancel) { }
304300 let saveAndStartOption = WKAlertAction ( title: NSLocalizedString ( " SAVE_START_NEW " , comment: " no comment " ) , style: . default) {
305- self . saveButtonTapped ( withReset: true )
301+ self . saveButtonTapped ( )
302+ self . gpxTrackingStatus = . notStarted
306303 }
307304 let deleteOption = WKAlertAction ( title: NSLocalizedString ( " RESET " , comment: " no comment " ) , style: . destructive) {
308305 self . gpxTrackingStatus = . notStarted
0 commit comments