From e3695e1a8e347461fd1ef6c5dc48aaa290f1381e Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 5 Aug 2011 02:38:11 +0000 Subject: [PATCH] when changing the idle seed time setting, reload the main table right away --- macosx/GlobalOptionsPopoverViewController.m | 6 ++++++ macosx/PrefsController.m | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/macosx/GlobalOptionsPopoverViewController.m b/macosx/GlobalOptionsPopoverViewController.m index e66ea773b..58f2975af 100644 --- a/macosx/GlobalOptionsPopoverViewController.m +++ b/macosx/GlobalOptionsPopoverViewController.m @@ -110,6 +110,9 @@ { tr_sessionSetIdleLimited(fHandle, [fDefaults boolForKey: @"IdleLimitCheck"]); + //reload main table for remaining seeding time + [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: nil]; + //reload global settings in inspector [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateGlobalOptions" object: nil]; } @@ -122,6 +125,9 @@ [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateIdleStopValueOutsidePrefs" object: nil]; + //reload main table for remaining seeding time + [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: nil]; + //reload global settings in inspector [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateGlobalOptions" object: nil]; } diff --git a/macosx/PrefsController.m b/macosx/PrefsController.m index c89fbc0f5..f33bc1961 100644 --- a/macosx/PrefsController.m +++ b/macosx/PrefsController.m @@ -641,7 +641,8 @@ tr_session * fHandle; tr_sessionSetIdleLimited(fHandle, [fDefaults boolForKey: @"IdleLimitCheck"]); tr_sessionSetIdleLimit(fHandle, [fDefaults integerForKey: @"IdleLimitMinutes"]); - #warning reload main table for remaining seeding time + //reload main table for remaining seeding time + [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: nil]; //reload global settings in inspector [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateGlobalOptions" object: nil];