fix a few warnings

This commit is contained in:
Andrey Filipenkov 2024-03-16 15:46:40 +03:00
parent b3ee998e3f
commit 316c0c307d

View File

@ -121,7 +121,7 @@ void PFMoveToApplicationsFolderIfNecessary(void) {
if (PFUseSmallAlertSuppressCheckbox) { if (PFUseSmallAlertSuppressCheckbox) {
NSCell *cell = [[alert suppressionButton] cell]; NSCell *cell = [[alert suppressionButton] cell];
[cell setControlSize:NSSmallControlSize]; [cell setControlSize:NSControlSizeSmall];
[cell setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]]; [cell setFont:[NSFont systemFontOfSize:[NSFont smallSystemFontSize]]];
} }
} }
@ -192,7 +192,7 @@ void PFMoveToApplicationsFolderIfNecessary(void) {
exit(0); exit(0);
} }
// Save the alert suppress preference if checked // 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]; [[NSUserDefaults standardUserDefaults] setBool:YES forKey:AlertSuppressKey];
} }