Commit 60b06277 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fixed minor display issue with the Equalizer button (#4654)

parent 6d98ddf3
......@@ -27,7 +27,6 @@
@interface VLCEqualizer : NSObject
{
IBOutlet id o_btn_equalizer;
IBOutlet id o_btn_equalizer_embedded;
IBOutlet id o_ckb_2pass;
IBOutlet id o_ckb_enable;
IBOutlet id o_fld_preamp;
......
......@@ -142,7 +142,6 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
{
int i;
[o_btn_equalizer setToolTip: _NS("Equalizer")];
[o_btn_equalizer_embedded setToolTip: _NS("Equalizer")];
[o_ckb_2pass setTitle: _NS("2 Pass")];
[o_ckb_2pass setToolTip: _NS("Apply the "
"equalizer filter twice. The effect will be sharper.")];
......@@ -330,13 +329,11 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
{
[o_window orderOut:sender];
[o_btn_equalizer setState:NSOffState];
[o_btn_equalizer_embedded setState:NSOffState];
}
else
{
[o_window makeKeyAndOrderFront:sender];
[o_btn_equalizer setState:NSOnState];
[o_btn_equalizer_embedded setState:NSOnState];
}
}
......@@ -363,6 +360,12 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
vlc_object_release( p_object );
}
- (void)windowDidBecomeKey:(NSNotification *)aNotification
{
[o_btn_equalizer setState: NSOnState];
}
- (void)windowWillClose:(NSNotification *)aNotification
{
[o_btn_equalizer setState: NSOffState];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment