mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Removed a redundant inline comment in icon loading/scaling logic, leaving behavior unchanged.
Removed a redundant inline comment in the Windows sysinfo volume-name guard path, with no functional impact. Removed a redundant inline comment in WinRT toast setup while keeping the same notification/audio attribute behavior.
This commit is contained in:
@@ -465,7 +465,6 @@ static char *read_hdd_info (IWbemClassObject *object)
|
|||||||
|
|
||||||
if (name_len >= 4 && name_bstr[0] == L'\\' && name_bstr[1] == L'\\' && name_bstr[2] == L'?' && name_bstr[3] == L'\\')
|
if (name_len >= 4 && name_bstr[0] == L'\\' && name_bstr[1] == L'\\' && name_bstr[2] == L'?' && name_bstr[3] == L'\\')
|
||||||
{
|
{
|
||||||
// This is not a named volume. Skip it.
|
|
||||||
VariantClear (&name_variant);
|
VariantClear (&name_variant);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
@@ -66,7 +66,6 @@ extern "C"
|
|||||||
node_list->GetAt (1)->AppendChild (
|
node_list->GetAt (1)->AppendChild (
|
||||||
toastTemplate->CreateTextNode (Platform::StringReference (wtext.c_str (), wtext.size ())));
|
toastTemplate->CreateTextNode (Platform::StringReference (wtext.c_str (), wtext.size ())));
|
||||||
|
|
||||||
// Mute sound, we already play our own
|
|
||||||
auto node = toastTemplate->SelectSingleNode (L"/toast");
|
auto node = toastTemplate->SelectSingleNode (L"/toast");
|
||||||
auto audio_elem = toastTemplate->CreateElement (L"audio");
|
auto audio_elem = toastTemplate->CreateElement (L"audio");
|
||||||
audio_elem->SetAttribute (L"silent", L"true");
|
audio_elem->SetAttribute (L"silent", L"true");
|
||||||
|
|||||||
@@ -168,7 +168,6 @@ load_pixmap (const char *filename)
|
|||||||
g_free (path);
|
g_free (path);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hack to avoid unbearably tiny icons on HiDPI screens.
|
|
||||||
scale = g_getenv ("GDK_SCALE");
|
scale = g_getenv ("GDK_SCALE");
|
||||||
if (scale)
|
if (scale)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user