Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
5f162f59
Commit
5f162f59
authored
Mar 05, 2006
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* don't show the statistics-tab if the stats aren't enabled
parent
03cb690b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
+22
-7
modules/gui/macosx/playlistinfo.m
modules/gui/macosx/playlistinfo.m
+22
-7
No files found.
modules/gui/macosx/playlistinfo.m
View file @
5f162f59
...
...
@@ -115,7 +115,8 @@
{
if
(
[
o_info_window
isVisible
]
)
{
[
o_statUpdateTimer
invalidate
];
if
(
o_statUpdateTimer
)
[
o_statUpdateTimer
invalidate
];
[
o_info_window
orderOut
:
sender
];
}
else
...
...
@@ -129,11 +130,16 @@
p_item
=
p_playlist
->
status
.
p_item
;
vlc_object_release
(
p_playlist
);
}
o_statUpdateTimer
=
[
NSTimer
scheduledTimerWithTimeInterval
:
1
\
target
:
self
selector
:
@selector
(
updateStatistics
:
)
\
userInfo
:
nil
repeats
:
YES
];
[
o_statUpdateTimer
fire
];
[
o_statUpdateTimer
retain
];
BOOL
b_stats
=
config_GetInt
(
VLCIntf
,
"stats"
);
if
(
b_stats
)
{
o_statUpdateTimer
=
[
NSTimer
scheduledTimerWithTimeInterval
:
1
\
target
:
self
selector
:
@selector
(
updateStatistics
:
)
\
userInfo
:
nil
repeats
:
YES
];
[
o_statUpdateTimer
fire
];
[
o_statUpdateTimer
retain
];
}
[
self
initPanel
:
sender
];
}
...
...
@@ -190,7 +196,16 @@
[[
VLCInfoTreeItem
rootItem
]
refresh
];
[
o_outline_view
reloadData
];
[
self
updateStatistics
:
nil
];
BOOL
b_stats
=
config_GetInt
(
VLCIntf
,
"stats"
);
if
(
!
b_stats
)
{
if
(
[
o_tab_view
numberOfTabViewItems
]
>
2
)
[
o_tab_view
removeTabViewItem
:
[
o_tab_view
tabViewItemAtIndex
:
2
]];
}
else
{
[
self
updateStatistics
:
nil
];
}
[
o_info_window
makeKeyAndOrderFront
:
sender
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment