Skip to content

Commit 9b21dc8

Browse files
committed
fix(Tooltip::Volume): Fix how to show the volume in the tooltip. Start with the volume then name of device.
To avoid the overflow of the text in the notification Fixes #1096
1 parent 8fc9cc4 commit 9b21dc8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SoundSwitch/Framework/TrayIcon/TooltipInfoManager/TootipInfo/TooltipInfoPlayback.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public string TextToDisplay()
4646
{
4747
return _defaultDevice == null
4848
? null
49-
: string.Format(SettingsStrings.activePlayback + " - {1}%", _defaultDevice.NameClean, _defaultDevice.Volume);
49+
: string.Format("[{1}%] " + SettingsStrings.activePlayback, _defaultDevice.NameClean, _defaultDevice.Volume);
5050
}
5151

5252
public override string ToString()

SoundSwitch/Framework/TrayIcon/TooltipInfoManager/TootipInfo/TooltipInfoRecording.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public string TextToDisplay()
4646
{
4747
return _defaultDevice == null
4848
? null
49-
: string.Format(SettingsStrings.activeRecording + " - {1}%", _defaultDevice.NameClean, _defaultDevice.Volume);
49+
: string.Format("[{1}%] " + SettingsStrings.activeRecording, _defaultDevice.NameClean, _defaultDevice.Volume);
5050
}
5151

5252
public override string ToString()

0 commit comments

Comments
 (0)