ソースを参照

Only scroll log view if new messages have arrived

This fixes a bug where being scrolled to the bottom of the system log screen would make the table view stutter repeatedly because it was trying to scroll to the bottom while already being at the bottom.
Tanner Bennett 8 年 前
コミット
f5433153d0
共有1 個のファイルを変更した3 個の追加0 個の削除を含む
  1. 3 0
      Classes/GlobalStateExplorers/SystemLog/FLEXSystemLogTableViewController.m

+ 3 - 0
Classes/GlobalStateExplorers/SystemLog/FLEXSystemLogTableViewController.m

@@ -70,6 +70,9 @@
 {
     dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
         NSArray<FLEXSystemLogMessage *> *newMessages = [self newLogMessagesForCurrentProcess];
+        if (!newMessages.count) {
+            return;
+        }
 
         dispatch_async(dispatch_get_main_queue(), ^{
             self.title = @"System Log";