#include "components/complete_preferences.hpp"
#include "components/simple_preferences.hpp"
#include "util/searchlineedit.hpp"
+#include "main_interface.hpp"
#include <QHBoxLayout>
#include <QGroupBox>
ErrorsDialog::getInstance (p_intf)->addError( qtr( "Cannot save Configuration" ),
qtr("Preferences file could not be saved") );
}
+
+ if( p_intf->p_sys->p_mi )
+ p_intf->p_sys->p_mi->reloadPrefs();
accept();
}
/* 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->endGroup();
}
+void MainInterface::reloadPrefs()
+{
+ b_notificationEnabled = var_InheritBool( p_intf, "qt-notification" );
+ b_pauseOnMinimize = var_InheritBool( p_intf, "qt-pause-minimized" );
+#ifdef WIN32
+ p_intf->p_sys->disable_volume_keys = var_InheritBool( p_intf, "qt-disable-volume-keys" );
+#endif
+ if( !var_InheritBool( p_intf, "qt-fs-controller" ) && fullscreenControls )
+ {
+ delete fullscreenControls;
+ fullscreenControls = NULL;
+ }
+}
+
void MainInterface::createMainWidget( QSettings *settings )
{
/* Create the main Widget and the mainLayout */