🪲 Prevent registering the same type twice
This commit is contained in:
@@ -304,6 +304,7 @@ var PreferencesDialog = class PreferencesDialog {
|
|||||||
// Each effect page is based on a template widget. This template contains the title
|
// Each effect page is based on a template widget. This template contains the title
|
||||||
// and the preview button.
|
// and the preview button.
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
if (GObject.type_from_name('BurnMyWindowsEffectPage') == null) {
|
||||||
BurnMyWindowsEffectPage =
|
BurnMyWindowsEffectPage =
|
||||||
GObject.registerClass({
|
GObject.registerClass({
|
||||||
GTypeName: 'BurnMyWindowsEffectPage',
|
GTypeName: 'BurnMyWindowsEffectPage',
|
||||||
@@ -373,6 +374,7 @@ var PreferencesDialog = class PreferencesDialog {
|
|||||||
// clang-format on
|
// clang-format on
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Nothing to do for now...
|
// Nothing to do for now...
|
||||||
function init() {}
|
function init() {}
|
||||||
|
|||||||
Reference in New Issue
Block a user