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
1a5ed68b
Commit
1a5ed68b
authored
Sep 26, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: cache some config variables
parent
b243bc8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+4
-3
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+1
-0
No files found.
modules/gui/qt4/main_interface.cpp
View file @
1a5ed68b
...
...
@@ -121,6 +121,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
/* Do we want anoying popups or not */
b_notificationEnabled
=
var_InheritBool
(
p_intf
,
"qt-notification"
);
b_pauseOnMinimize
=
var_InheritBool
(
p_intf
,
"qt-pause-minimized"
);
/* Set the other interface settings */
settings
=
getSettings
();
settings
->
beginGroup
(
"MainWindow"
);
...
...
@@ -1128,9 +1130,8 @@ void MainInterface::changeEvent(QEvent *event)
b_hasPausedWhenMinimized
=
false
;
if
(
THEMIM
->
getIM
()
->
playingStatus
()
==
PLAYING_S
&&
THEMIM
->
getIM
()
->
hasVideo
()
&&
!
THEMIM
->
getIM
()
->
hasVisualisation
()
&&
var_InheritBool
(
p_intf
,
"qt-pause-minimized"
)
)
THEMIM
->
getIM
()
->
hasVideo
()
&&
!
THEMIM
->
getIM
()
->
hasVisualisation
()
&&
b_pauseOnMinimize
)
{
b_hasPausedWhenMinimized
=
true
;
THEMIM
->
pause
();
...
...
modules/gui/qt4/main_interface.hpp
View file @
1a5ed68b
...
...
@@ -161,6 +161,7 @@ private:
bool
b_hideAfterCreation
;
bool
b_minimalView
;
///< Minimal video
bool
b_interfaceFullScreen
;
bool
b_pauseOnMinimize
;
/* States */
bool
playlistVisible
;
///< Is the playlist visible ?
...
...
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