forked from exaile/exaile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable confirmation after manually setting bpm count (exaile#862)
* Fixes exaile#717
- Loading branch information
Showing
3 changed files
with
58 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import os | ||
from xlgui.preferences import widgets | ||
from xl.nls import gettext as _ | ||
|
||
name = _("BPM Counter") | ||
basedir = os.path.dirname(os.path.realpath(__file__)) | ||
ui = os.path.join(basedir, "bpm_prefs.ui") | ||
|
||
|
||
class ShowConfimation(widgets.CheckPreference): | ||
default = True | ||
name = "plugin/bpm/show_confirmation_on_manual_setting" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- Generated with glade 3.18.3 --> | ||
<interface> | ||
<requires lib="gtk+" version="3.10"/> | ||
<object class="GtkGrid" id="preferences_pane"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">False</property> | ||
<property name="row_spacing">4</property> | ||
<property name="column_spacing">2</property> | ||
<child> | ||
<object class="GtkCheckButton" id="plugin/bpm/show_confirmation_on_manual_setting"> | ||
<property name="label" translatable="yes">Enable confirmation dialog after manually setting bpm</property> | ||
<property name="visible">True</property> | ||
<property name="can_focus">True</property> | ||
<property name="receives_default">False</property> | ||
<property name="tooltip_text" translatable="yes"></property> | ||
<property name="draw_indicator">True</property> | ||
</object> | ||
<packing> | ||
<property name="left_attach">0</property> | ||
<property name="top_attach">0</property> | ||
<property name="width">3</property> | ||
</packing> | ||
</child> | ||
</object> | ||
</interface> |