Changeset 5f162f59b94344ee8a6f70949ebf55aaa95e71de
- Timestamp:
- 05/03/06 16:42:51
(3 years ago)
- Author:
- Felix Paul Kühne <fkuehne@videolan.org>
- git-committer:
- Felix Paul Kühne <fkuehne@videolan.org> 1141573371 +0000
- git-parent:
[03cb690babe01ebb0f164e0f00c3de7f0262e1a4]
- git-author:
- Felix Paul Kühne <fkuehne@videolan.org> 1141573371 +0000
- Message:
* don't show the statistics-tab if the stats aren't enabled
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r03c546c |
r5f162f5 |
|
| 116 | 116 | if( [o_info_window isVisible] ) |
|---|
| 117 | 117 | { |
|---|
| 118 | | [o_statUpdateTimer invalidate]; |
|---|
| | 118 | if( o_statUpdateTimer ) |
|---|
| | 119 | [o_statUpdateTimer invalidate]; |
|---|
| 119 | 120 | [o_info_window orderOut: sender]; |
|---|
| 120 | 121 | } |
|---|
| … | … | |
| 130 | 131 | vlc_object_release( p_playlist ); |
|---|
| 131 | 132 | } |
|---|
| 132 | | o_statUpdateTimer = [NSTimer scheduledTimerWithTimeInterval: 1 \ |
|---|
| 133 | | target: self selector: @selector(updateStatistics:) \ |
|---|
| 134 | | userInfo: nil repeats: YES]; |
|---|
| 135 | | [o_statUpdateTimer fire]; |
|---|
| 136 | | [o_statUpdateTimer retain]; |
|---|
| | 133 | |
|---|
| | 134 | BOOL b_stats = config_GetInt(VLCIntf, "stats"); |
|---|
| | 135 | if( b_stats ) |
|---|
| | 136 | { |
|---|
| | 137 | o_statUpdateTimer = [NSTimer scheduledTimerWithTimeInterval: 1 \ |
|---|
| | 138 | target: self selector: @selector(updateStatistics:) \ |
|---|
| | 139 | userInfo: nil repeats: YES]; |
|---|
| | 140 | [o_statUpdateTimer fire]; |
|---|
| | 141 | [o_statUpdateTimer retain]; |
|---|
| | 142 | } |
|---|
| 137 | 143 | |
|---|
| 138 | 144 | [self initPanel:sender]; |
|---|
| … | … | |
| 191 | 197 | [o_outline_view reloadData]; |
|---|
| 192 | 198 | |
|---|
| 193 | | [self updateStatistics: nil]; |
|---|
| | 199 | BOOL b_stats = config_GetInt(VLCIntf, "stats"); |
|---|
| | 200 | if(! b_stats ) |
|---|
| | 201 | { |
|---|
| | 202 | if( [o_tab_view numberOfTabViewItems] > 2 ) |
|---|
| | 203 | [o_tab_view removeTabViewItem: [o_tab_view tabViewItemAtIndex: 2]]; |
|---|
| | 204 | } |
|---|
| | 205 | else |
|---|
| | 206 | { |
|---|
| | 207 | [self updateStatistics: nil]; |
|---|
| | 208 | } |
|---|
| 194 | 209 | |
|---|
| 195 | 210 | [o_info_window makeKeyAndOrderFront: sender]; |
|---|