241139← ↑修正パッチ →241141


2004.07.12 (月) 23:54:35 <u*j*2*6*> トレイアイコンを表示しない設定で起動して、トレイアイコンを表示しようとしたとき、アイコンが表示されてませんでした。

shuusei241140:トレイアイコンが表示されないバグを再修正(241134参照,report by MuumiPeikko)

Everything is expanded.Everything is shortened.
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
-
|
|
|
|
|
!
diff --dos -urN 241139/mainform.pas 241140/mainform.pas
--- 241139/mainform.pas    Sat Jul 10 05:38:32 2004
+++ 241140/mainform.pas    Mon Jul 12 22:59:20 2004
@@ -429,7 +429,7 @@
     procedure LoadConfig(LoadMode: ConfigLoadMode = lmAll);
     procedure SaveConfig;
     procedure Timer1Timer(Sender: TObject);
-    procedure UpdateTray;
+    procedure UpdateTray(IsIconCreating: Boolean = False);
     procedure Sh_Show(Sender: TObject);
     procedure DrawPopupItem2(Sender: TObject; ACanvas: TCanvas;
       ARect: TRect; Selected: Boolean);
@@ -3027,7 +3027,7 @@
   end;
 end;
 
-procedure TSlavaNapWindow.UpdateTray;
+procedure TSlavaNapWindow.UpdateTray(IsIconCreating: Boolean);
 var
   Str: string;
   I, J, Count: Integer;
@@ -3040,7 +3040,7 @@
   else
     Str := '[' + IntToStr(Total_Users) + '] - ' + SLAVANAP_VERSION_SHORT + ' b'
       + SLAVANAP_BUILD + ' (' + ServerName_I + ')';
-  if Tray.Hint = Str then Exit;
+  if not IsIconCreating and (Tray.Hint = Str) then Exit;
   Tray.Hint := Str;
   Caption := Str;
   Count := Total_Users;
diff --dos -urN 241139/settings.pas 241140/settings.pas
--- 241139/settings.pas    Wed Jul 07 22:56:32 2004
+++ 241140/settings.pas    Mon Jul 12 22:58:38 2004
@@ -2015,7 +2015,7 @@
     if Cb_Interface_SysTray.Checked <> SlavaNapwindow.Tray.Active then
     begin
       SlavaNapWindow.Tray.Active := Cb_Interface_SysTray.Checked;
-      SlavaNapWindow.UpdateTray;
+      SlavaNapWindow.UpdateTray(Cb_Interface_SysTray.Checked);
       if not SlavaNapWindow.Visible then
         SlavaNapWindow.Show;
     end;
241139← ↑修正パッチ →241141