Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Commit

Permalink
Use default event detail button text when a custom URL is set (#1161)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlw authored Aug 23, 2023
1 parent 1cdd04f commit 4fdc1e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/gui/SNTBinaryMessageWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ - (void)loadWindow {

if (!url) {
[self.openEventButton removeFromSuperview];
} else {
} else if (self.customURL.length == 0) {
// Set the button text only if a per-rule custom URL is not used. If a
// custom URL is used, it is assumed that the `EventDetailText` config value
// does not apply and the default text will be used.
NSString *eventDetailText = [[SNTConfigurator configurator] eventDetailText];
if (eventDetailText) {
[self.openEventButton setTitle:eventDetailText];
Expand Down

0 comments on commit 4fdc1e5

Please sign in to comment.