ソースを参照

Add correct parent plugin. Don't flash if we have focus.

Change-Id: Iba18836162dc282090e26f044271fcf47d463ff6
Reviewed-on: http://gerrit.dmdirc.com/1868
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
tags/0.7rc1
Greg Holmes 13年前
コミット
19a47746ba

+ 3
- 1
src/com/dmdirc/addons/windowflashing/WindowFlashing.java ファイルの表示

@@ -65,7 +65,9 @@ public class WindowFlashing extends Plugin {
65 65
      * Flashes an inactive window under windows.
66 66
      */
67 67
     public void flashWindow() {
68
-        user32.FlashWindowEx(flashInfo);
68
+        if (!mainFrame.isFocused()) {
69
+            user32.FlashWindowEx(flashInfo);
70
+        }
69 71
     }
70 72
 
71 73
     /**

+ 5
- 1
src/com/dmdirc/addons/windowflashing/plugin.config ファイルの表示

@@ -6,8 +6,8 @@
6 6
 keysections:
7 7
   metadata
8 8
   updates
9
-  version
10 9
   requires
10
+  version
11 11
 
12 12
 metadata:
13 13
   author=Greg <greg@dmdirc.com>
@@ -23,8 +23,12 @@ updates:
23 23
   id=64
24 24
 
25 25
 requires:
26
+  parent=ui_swing
26 27
   os=.*windows.*
27 28
 
29
+required-services:
30
+  swing ui
31
+
28 32
 provides:
29 33
   windowflash command
30 34
 

読み込み中…
キャンセル
保存