mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Hide Visual modes when screen is turned off
This commit is contained in:
18
app/Properties/Strings.Designer.cs
generated
18
app/Properties/Strings.Designer.cs
generated
@@ -2006,6 +2006,24 @@ namespace GHelper.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Visual Modes are not available when HDR is active.
|
||||
/// </summary>
|
||||
internal static string VisualModesHDR {
|
||||
get {
|
||||
return ResourceManager.GetString("VisualModesHDR", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Visual Modes are not available when laptop screen is off.
|
||||
/// </summary>
|
||||
internal static string VisualModesScreen {
|
||||
get {
|
||||
return ResourceManager.GetString("VisualModesScreen", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Volume Down.
|
||||
/// </summary>
|
||||
|
||||
@@ -767,6 +767,12 @@ Do you still want to continue?</value>
|
||||
<data name="VisualMode" xml:space="preserve">
|
||||
<value>Visual Mode</value>
|
||||
</data>
|
||||
<data name="VisualModesHDR" xml:space="preserve">
|
||||
<value>Visual Modes are not available when HDR is active</value>
|
||||
</data>
|
||||
<data name="VisualModesScreen" xml:space="preserve">
|
||||
<value>Visual Modes are not available when laptop screen is off</value>
|
||||
</data>
|
||||
<data name="VolumeDown" xml:space="preserve">
|
||||
<value>Volume Down</value>
|
||||
</data>
|
||||
|
||||
@@ -1203,8 +1203,21 @@ namespace GHelper
|
||||
buttonMiniled.Visible = false;
|
||||
}
|
||||
|
||||
tableVisual.Visible = !hdr;
|
||||
labelVisual.Visible = hdr;
|
||||
if (!screenEnabled)
|
||||
{
|
||||
labelVisual.Text = Properties.Strings.VisualModesScreen;
|
||||
labelVisual.Visible = true;
|
||||
tableVisual.Visible = false;
|
||||
} else if (hdr)
|
||||
{
|
||||
labelVisual.Text = Properties.Strings.VisualModesHDR;
|
||||
labelVisual.Visible = true;
|
||||
tableVisual.Visible = false;
|
||||
} else
|
||||
{
|
||||
labelVisual.Visible = false;
|
||||
tableVisual.Visible = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user