Skip to content

Commit 5455559

Browse files
authored
Merge pull request #987 from twpol/bugfix/notifications-net5-build
fix: Temporary workaround for building with NET 5+
2 parents 511df24 + 232e8fb commit 5455559

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Source/Menu/Notifications/NotificationManager.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,12 @@ public NotificationManager(MainForm mainForm, ResourceManager resources, UpdateM
9898

9999
public double GetScalingFactor()
100100
{
101+
#if NET5_0_OR_GREATER
102+
#warning GetScalingFactor() not implemented for NET5+
103+
return 1;
104+
#else
101105
return Screen.PrimaryScreen.Bounds.Width / SystemParameters.PrimaryScreenWidth;
106+
#endif
102107
}
103108

104109
public void CheckNotifications()

0 commit comments

Comments
 (0)