Don't Show Balloon Tip Every Minimize (it's annoying)
This commit is contained in:
parent
68def5ac1f
commit
fb15211f23
@ -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)
|
||||||
|
@ -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 {
|
||||||
|
@ -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>
|
Loading…
x
Reference in New Issue
Block a user