-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Prayer Time #35
base: master
Are you sure you want to change the base?
add Prayer Time #35
Conversation
It's so cool, thanks. I have some general suggestions, since all people are not Muslims, please change the naming of files and also options in the settings to something like "Islamic prayer timing" or even more accurate "Shia Prayer Timing". And exactly because of the same reason, I would suggest disabling it by default. Because in the future we cannot enable all kind of prayer times at the same time. |
Hi,
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I agree we can improve most of the issued I've mentioned later.
By the way, I put 2-3 comments. It would be awesome if you could take care of them.
MainLoop.source_remove(this._prayerTimeout); | ||
this._prayerTimeout = null; | ||
} | ||
this._prayerTimeout = MainLoop.timeout_add(60000 - (new Date().getSeconds() * 1000), Lang.bind(this,this._prayerTimeLoop)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should remove this in the "disable" function.
And I would suggest adding it to the "enable" function.
Another suggestion is to ignore adding timeout when the feature is disabled.
})); | ||
item = new Gtk.CheckButton({label: _('Show Pray Time')}); | ||
this.vbox2.add(item); | ||
Schema.bind('praytime-visible', item, 'active', Gio.SettingsBindFlags.DEFAULT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please disable this and Azaan options, by default.
@@ -60,6 +60,31 @@ | |||
<summary>Display official international events</summary> | |||
<description>Display official international events.</description> | |||
</key> | |||
<key name="praytime-visible" type="b"> | |||
<default>true</default> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
Please disable this and Azaan options, by default.
add Prayer song
Prayer time based on location and TimeZone
Automatic play
Azaan
audio.