mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Fixed a bug where "Reset to Defaults" in the Columns menu wouldn't refresh menu items' marked state.
This commit is contained in:
parent
caf04f0d3f
commit
9e7d27dcda
@ -67,6 +67,7 @@ http://www.hardcoded.net/licenses/bsd_license
|
|||||||
/* Helpers */
|
/* Helpers */
|
||||||
- (void)fillColumnsMenu
|
- (void)fillColumnsMenu
|
||||||
{
|
{
|
||||||
|
[[app columnsMenu] removeAllItems];
|
||||||
NSArray *menuItems = [[[table columns] model] menuItems];
|
NSArray *menuItems = [[[table columns] model] menuItems];
|
||||||
for (NSInteger i=0; i < [menuItems count]; i++) {
|
for (NSInteger i=0; i < [menuItems count]; i++) {
|
||||||
NSArray *pair = [menuItems objectAtIndex:i];
|
NSArray *pair = [menuItems objectAtIndex:i];
|
||||||
@ -250,6 +251,7 @@ http://www.hardcoded.net/licenses/bsd_license
|
|||||||
- (void)resetColumnsToDefault
|
- (void)resetColumnsToDefault
|
||||||
{
|
{
|
||||||
[[[table columns] model] resetToDefaults];
|
[[[table columns] model] resetToDefaults];
|
||||||
|
[self fillColumnsMenu];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)revealSelected
|
- (void)revealSelected
|
||||||
|
Loading…
x
Reference in New Issue
Block a user