fix a few warnings

This commit is contained in:
Andrey Filipenkov committed 2024-04-21 12:26:08 +03:00
1 parent b3ee998e3f
commit 316c0c307d
1 file changed
+2 -2
+2 -2
View File
@@ -121,7 +121,7 @@ void PFMoveToApplicationsFolderIfNecessary(void) {
if (PFUseSmallAlertSuppressCheckbox) {
NSCell *cell = [[alert suppressionButton] cell];
[cell setControlSize:NSSmallControlSize];
[cell setControlSize:NSControlSizeSmall];
[cell setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]];
}
}
@@ -192,7 +192,7 @@ void PFMoveToApplicationsFolderIfNecessary(void) {
exit(0);
}
// Save the alert suppress preference if checked
else if ([[alert suppressionButton] state] == NSOnState) {
else if ([[alert suppressionButton] state] == NSControlStateValueOn) {
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:AlertSuppressKey];
}