public void initForScreensaverAndWallpaper() {
int nrMonitors = this.getNrMonitors();
// Avoid double loading config from DB
if (!config.persistantLoaded()) {
this.config.loadPersistantConfig(nrMonitors);
}
this.configInitialised = true;
this.fileNodes = new FileNodes(this.config, this);
if (this.config.getPersistantBool("useFilter")) {
try {
this.fileNodes.setFilterSQL(this.config.getPersistantString("filter"));
} catch (Exception e) {
//this.showInfoOnMonitors(e.Message, true, true);
this.config.setPersistant("useFilter", false, true);
this.fileNodes.clearFilter();
}
}
this.Desktop = Constants.getDesktopBounds();
this.desktopRatio = Desktop.Width / Desktop.Height;
}