git.ithinksw.org
/
MenuTunes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
93a60b6
)
Fixed a problem with the time updating in the status window.
author
Kent Sutherland
<ksuther@ithinksw.com>
Thu, 15 Sep 2005 19:13:56 +0000
(19:13 +0000)
committer
Kent Sutherland
<ksuther@ithinksw.com>
Thu, 15 Sep 2005 19:13:56 +0000
(19:13 +0000)
MainController.m
patch
|
blob
|
history
diff --git
a/MainController.m
b/MainController.m
index
b9f856a
..
201edef
100755
(executable)
--- a/
MainController.m
+++ b/
MainController.m
@@
-1140,8
+1140,9
@@
static MainController *sharedController;
- (void)updateTime:(NSTimer *)timer
{
- (void)updateTime:(NSTimer *)timer
{
+ StatusWindow *sw = [StatusWindow sharedWindow];
_timeUpdateCount++;
_timeUpdateCount++;
- if (_timeUpdateCount
> (int)[df floatForKey:@"statusWindowVanishDelay"] - 1
) {
+ if (_timeUpdateCount
< (int)[sw exitDelay] + (int)[[sw exitEffect] effectTime] + (int)[[sw entryEffect] effectTime]
) {
NSString *time = nil;
NS_DURING
time = [NSString stringWithFormat:@"%@: %@ / %@",
NSString *time = nil;
NS_DURING
time = [NSString stringWithFormat:@"%@: %@ / %@",
@@
-1152,6
+1153,8
@@
static MainController *sharedController;
NS_HANDLER
[self networkError:localException];
NS_ENDHANDLER
NS_HANDLER
[self networkError:localException];
NS_ENDHANDLER
+ } else {
+ [timer invalidate];
}
}
}
}