Skip to content

Commit

Permalink
style: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Oct 26, 2024
1 parent 77003dc commit e7ecc0f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// ServiceConfigurationKey.swift
// Easydict
//
// Created by tisfeng on 2024/10/26.
// Created by tisfeng on 2024/4/28.
// Copyright © 2024 izual. All rights reserved.
//

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//
// DefaultsStoredKey.swift
// WindowConfigurationKey.swift
// Easydict
//
// Created by tisfeng on 2024/4/28.
// Created by tisfeng on 2024/10/26.
// Copyright © 2024 izual. All rights reserved.
//

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,11 @@ - (void)setupUI {
object:nil
queue:NSOperationQueue.mainQueue
usingBlock:^(NSNotification *_Nonnull notification) {
mm_strongify(self);
[self reloadTableViewData:^{
[self updateTableViewHeight];
}];
}];
mm_strongify(self);
[self reloadTableViewData:^{
[self updateTableViewHeight];
}];
}];

[defaultCenter addObserver:self
selector:@selector(modifyLanduage:)
Expand Down Expand Up @@ -1588,7 +1588,7 @@ - (void)updateWindowHeightWithLock:(BOOL)lockFlag {

CGFloat scrollViewHeight = height + self.scrollView.contentInsets.top + self.scrollView.contentInsets.bottom;
scrollViewHeight = MIN(scrollViewHeight, maxWindowSize.height - titleBarHeight);
// MMLogInfo(@"scrollViewHeight: %@", @(scrollViewHeight));
// MMLogInfo(@"scrollViewHeight: %@", @(scrollViewHeight));

// Diable change window height manually.
[self.scrollView mas_updateConstraints:^(MASConstraintMaker *make) {
Expand Down Expand Up @@ -1620,7 +1620,7 @@ - (void)updateWindowHeightWithLock:(BOOL)lockFlag {
self.lockResizeWindow = NO;
});

// MMLogInfo(@"window frame: %@", @(window.frame));
// MMLogInfo(@"window frame: %@", @(window.frame));
}

- (CGFloat)getRestrainedScrollViewHeight:(CGFloat)scrollViewContentHeight {
Expand Down Expand Up @@ -1709,8 +1709,8 @@ - (void)autoCopyTranslatedTextOfService:(EZQueryService *)service {

- (BOOL)isCustomTipsType {
return self.tipsCellType == EZTipsCellTypeErrorTips ||
self.tipsCellType == EZTipsCellTypeInfoTips ||
self.tipsCellType == EZTipsCellTypeWarnTips;
self.tipsCellType == EZTipsCellTypeInfoTips ||
self.tipsCellType == EZTipsCellTypeWarnTips;
}

@end

0 comments on commit e7ecc0f

Please sign in to comment.