![]() |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
I could change them and test them here too :) |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
There are only 2 lines in the first file /* + */ that encapsulated the button And likewise in the second file, but 2 places EDIT In MapSettingsModel.qml If you out comment function isNight at the button it seems to actually work |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
in /usr/lib/drive-qml/models/MapSettingsModel.qml There is a line: /* if (newvalue === "auto") { setNightMode(isNight()); } else*/ { setNightMode(newvalue === "night"); Should be changed to: if (newvalue === "auto") { setNightMode(isNight()); } else { setNightMode(newvalue === "night"); It will start up in night mode, then choose automatic, it will set itself up and run as it should :) |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Works great, thansk for this discover!
Maybe this can be add to N9 QTweak for people that doesn't have xterm experience at all |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
console.log("Sunrise:" + sunrise); var t = today.getHours() + today.getMinutes()/60; console.log("NOW: "+t); if (t >= sunrise && t < sunset) { return false; } return true; } function onDayNightSwitch() { console.log("onDayNightSwitch"); if (dayNightMode === "auto") { console.log("Change map mode to: "+!nightMode); setNightMode(isNight()); } } Are you referring to the bold? Edit: and why? |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
Edit: for those that don't want to do the changes nieldk and I did (includes traffic changes in Drive and Auto mode for day/night: http://talk.maemo.org/showpost.php?p...2&postcount=18 Follow that :) |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
That's good team work! |
Re: [MOD] How to enable Traffic in Drive for PR1.2/1.3
Quote:
|
All times are GMT. The time now is 07:24. |
vBulletin® Version 3.8.8