CleoMenezesJr/weather-oclock

Feature request: Option to hide Celsius/Fahrenheit

kimdre opened this issue · 0 comments

An option to hide the Celsius/Fahrenheit symbol would be nice.

Currently I change the label text manually by adding a replace function in
~/.local/share/gnome-shell/extensions/weatheroclock@CleoMenezesJr.github.io/extension.js

this._label.text = weather.info.get_temp_summary().replace("--", "");

becomes

this._label.text = weather.info.get_temp_summary().replace("--", "").replace(/.$/, "");

After that I restart my gnome session with alt + F2 -> type restart -> enter