Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 345540b

Browse files
committed
remove ballon
1 parent 5e00ec1 commit 345540b

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

MainForm.cs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,16 @@ private void MainForm_Load(object sender, EventArgs e)
4646

4747
runMinimized.Enabled = runOnStartup.Checked;
4848

49-
if (runMinimized.Enabled && runOnStartup.Enabled)
49+
if (config.runMinimized && config.runOnStartup)
5050
{
51-
5251
System.Threading.Timer timer = new System.Threading.Timer(new TimerCallback((obj) =>
5352
{
5453
this.Invoke(new MethodInvoker(delegate ()
5554
{
5655
tinyDrpcNotifyIcon.Visible = true;
5756
Hide();
5857
}));
59-
}), null, 1, Timeout.Infinite);
60-
58+
}), null, 50, Timeout.Infinite);
6159
}
6260

6361
if (config.saveRunningState == true && config.lastStateIsRunning == true)
@@ -247,13 +245,6 @@ private void changeButtonState(Boolean enableButton, String text)
247245
private void updateUICurrentStatus(String text)
248246
{
249247
status.Text = text;
250-
if(tinyDrpcNotifyIcon.Visible == true)
251-
{
252-
tinyDrpcNotifyIcon.BalloonTipIcon = ToolTipIcon.Info;
253-
tinyDrpcNotifyIcon.BalloonTipText = text;
254-
tinyDrpcNotifyIcon.BalloonTipTitle = "TinyDRPC";
255-
tinyDrpcNotifyIcon.ShowBalloonTip(5000);
256-
}
257248
}
258249

259250
private void updateStatus()

0 commit comments

Comments
 (0)