File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
src/main/java/com/airsquared/blobsaver Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,11 @@ static void startBackground(boolean runOnlyOnce) {
112
112
popup .add (openItem );
113
113
popup .addSeparator ();
114
114
popup .add (exitItem );
115
+ if (Main .SHOW_BREAKPOINT ) {
116
+ MenuItem breakpointItem = new MenuItem ("Breakpoint" );
117
+ breakpointItem .addActionListener (e -> System .out .println ("breakpoint" ));
118
+ popup .add (breakpointItem );
119
+ }
115
120
trayIcon .setPopupMenu (popup );
116
121
117
122
// add the application tray icon to the system tray.
Original file line number Diff line number Diff line change @@ -446,6 +446,8 @@ public void savePresetHandler() {
446
446
public void checkBlobs () { openURL ("https://tsssaver.1conan.com/check.php" ); }
447
447
448
448
public void helpLabelHandler (MouseEvent evt ) {
449
+ if (Main .SHOW_BREAKPOINT ) return ; // remember to put a breakpoint here
450
+
449
451
String labelID ;
450
452
// if user clicks on question mark instead of padding, evt.getTarget() returns LabeledText instead of Label
451
453
if (evt .getTarget () instanceof LabeledText ) {
Original file line number Diff line number Diff line change @@ -40,6 +40,13 @@ public class Main {
40
40
private static final String appID = "com.airsquared.blobsaver" ;
41
41
static Stage primaryStage ;
42
42
43
+ /**
44
+ * Enables a menu item in the system tray to activate a breakpoint when in background and
45
+ * replaces the question mark help labels with activating a breakpoint instead.
46
+ * Remember to add a breakpoint in the correct methods to use this.
47
+ */
48
+ static final boolean SHOW_BREAKPOINT = false ;
49
+
43
50
public static void main (String [] args ) {
44
51
try {
45
52
JUnique .acquireLock (appID );
You can’t perform that action at this time.
0 commit comments