Don't Show Balloon Tip Every Minimize (it's annoying)

This commit is contained in:
Alan Moon 2025-06-24 16:04:50 -07:00
parent 68def5ac1f
commit fb15211f23
3 changed files with 13 additions and 4 deletions

View File

@ -19,6 +19,8 @@ namespace qtc_net_client_2
private List<Room> RoomList = []; private List<Room> RoomList = [];
private List<UserInformationDto> OnlineUsers = []; private List<UserInformationDto> OnlineUsers = [];
private List<UserInformationDto> Contacts = []; private List<UserInformationDto> Contacts = [];
private bool FirstMinimize = false;
public Main(IApiService apiService, IGatewayService gatewayService, Config config) public Main(IApiService apiService, IGatewayService gatewayService, Config config)
{ {
_apiService = apiService; _apiService = apiService;
@ -201,10 +203,17 @@ namespace qtc_net_client_2
private void frmMain_Resize(object sender, EventArgs e) private void frmMain_Resize(object sender, EventArgs e)
{ {
if (WindowState == FormWindowState.Minimized && _config.MinimizeToTray) { Hide(); niMain.Visible = true; niMain.ShowBalloonTip(10, if (WindowState == FormWindowState.Minimized && _config.MinimizeToTray)
{
Hide();
niMain.Visible = true;
if (FirstMinimize) { niMain.ShowBalloonTip(10,
"I'm over here!", "I'm over here!",
"QtC.NET Mimimizes To Tray By Default. To Change This Behaviour, Refer To config.json", "QtC.NET Mimimizes To Tray By Default. To Change This Behaviour, Refer To config.json",
ToolTipIcon.Info); } ToolTipIcon.Info);
FirstMinimize = false;
}
}
} }
private void niMain_DoubleClick(object sender, EventArgs e) private void niMain_DoubleClick(object sender, EventArgs e)

View File

@ -81,7 +81,7 @@ namespace qtc_net_client_2.Properties {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to 3.4. /// Looks up a localized string similar to 3.4.1.
/// </summary> /// </summary>
internal static string AssemblyVersion { internal static string AssemblyVersion {
get { get {

View File

@ -170,6 +170,6 @@
<value>..\Anims\left-horn-animated.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Anims\left-horn-animated.gif;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="AssemblyVersion" xml:space="preserve"> <data name="AssemblyVersion" xml:space="preserve">
<value>3.4</value> <value>3.4.1</value>
</data> </data>
</root> </root>