mirror of https://github.com/2dust/v2rayN
RefreshTaryIcon while DisplaySettingsChanged
parent
5b3f09aaf7
commit
a0b0ad53d2
|
@ -55,6 +55,8 @@ namespace v2rayN.Forms
|
||||||
{
|
{
|
||||||
statistics = new StatisticsHandler(config, UpdateStatisticsHandler);
|
statistics = new StatisticsHandler(config, UpdateStatisticsHandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Microsoft.Win32.SystemEvents.DisplaySettingsChanged += new EventHandler(SystemEvents_DisplaySettingsChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void MainForm_VisibleChanged(object sender, EventArgs e)
|
private void MainForm_VisibleChanged(object sender, EventArgs e)
|
||||||
|
@ -342,6 +344,10 @@ namespace v2rayN.Forms
|
||||||
//qrCodeControl.showQRCode(index, config);
|
//qrCodeControl.showQRCode(index, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void RefreshTaryIcon()
|
||||||
|
{
|
||||||
|
notifyMain.Icon = MainFormHandler.Instance.GetNotifyIcon(config, this.Icon);
|
||||||
|
}
|
||||||
private void DisplayToolStatus()
|
private void DisplayToolStatus()
|
||||||
{
|
{
|
||||||
toolSslSocksPort.Text =
|
toolSslSocksPort.Text =
|
||||||
|
@ -386,7 +392,7 @@ namespace v2rayN.Forms
|
||||||
}
|
}
|
||||||
toolSslRouting.Text = routingStatus;
|
toolSslRouting.Text = routingStatus;
|
||||||
|
|
||||||
notifyMain.Icon = MainFormHandler.Instance.GetNotifyIcon(config, this.Icon);
|
RefreshTaryIcon();
|
||||||
}
|
}
|
||||||
private void ssMain_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
|
private void ssMain_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
|
||||||
{
|
{
|
||||||
|
@ -1602,7 +1608,12 @@ namespace v2rayN.Forms
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
private void SystemEvents_DisplaySettingsChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
RefreshTaryIcon();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue