mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix possible NullReferenceException
This commit is contained in:
parent
ecd019dd6b
commit
6c458828bc
1 changed files with 4 additions and 0 deletions
|
|
@ -41,12 +41,16 @@ public class ThemeData
|
|||
/// <inheritdoc />
|
||||
public static bool operator ==(ThemeData left, ThemeData right)
|
||||
{
|
||||
if (left is null && right is null)
|
||||
return true;
|
||||
return left.Equals(right);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public static bool operator !=(ThemeData left, ThemeData right)
|
||||
{
|
||||
if (left is null && right is null)
|
||||
return false;
|
||||
return !(left == right);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue