Skip to content

Commit

Permalink
autosave fixes monal-im#745
Browse files Browse the repository at this point in the history
  • Loading branch information
thevaidik committed Apr 4, 2024
1 parent 7ee93f8 commit dff7a91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion Monal/Classes/XMPPEdit.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
@property (nonatomic, strong) NSNumber* accountNo;
@property (nonatomic, strong) NSIndexPath* originIndex;

-(IBAction) save:(id) sender;

@end

Expand Down
4 changes: 3 additions & 1 deletion Monal/Classes/XMPPEdit.m
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ -(void) viewWillDisappear:(BOOL) animated
{
[super viewWillDisappear:animated];
DDLogVerbose(@"xmpp edit view will hide");
[self saveSettings];
}

-(void) dealloc
Expand All @@ -265,7 +266,8 @@ -(void) alertWithTitle:(NSString*) title andMsg:(NSString*) msg

#pragma mark actions

-(IBAction) save:(id) sender

-(void) saveSettings
{
if(self.deactivateSave)
{
Expand Down
8 changes: 1 addition & 7 deletions Monal/localization/Base.lproj/Settings.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,7 @@
</connections>
</tableView>
<toolbarItems/>
<navigationItem key="navigationItem" title="Account Edit" id="pa7-vQ-Yz3">
<barButtonItem key="rightBarButtonItem" title="Save" id="TJt-Kl-UDV">
<connections>
<action selector="save:" destination="Tus-3k-aPR" id="i9T-Fu-o5Z"/>
</connections>
</barButtonItem>
</navigationItem>
<navigationItem key="navigationItem" title="Account Edit" id="pa7-vQ-Yz3"/>
<simulatedToolbarMetrics key="simulatedBottomBarMetrics"/>
<connections>
<segue destination="T2P-jI-4uD" kind="show" identifier="showServerDetails" id="i4b-wV-798"/>
Expand Down

0 comments on commit dff7a91

Please sign in to comment.