Skip to content

Commit 66da181

Browse files
authored
Add files via upload
1 parent 49a74f9 commit 66da181

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

addons/github-integration/scripts/Notifications.gd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ onready var organization_member_check : CheckBox = $NotificationsContainer/Notif
2121
signal add_notifications(amount)
2222

2323
var to_load_next : bool = false
24-
var notifications_tabs : Array = ["Invitations","Settings"]
24+
var notifications_tabs : Array = ["Invitations", "Settings"]
2525

2626
func _ready():
27+
if PluginSettings._loaded : pass
28+
else: yield(PluginSettings,"ready")
2729
load_settings()
2830
_connect_signals()
2931
load_notification_tabs()

addons/github-integration/scripts/PluginSettings.gd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ var auto_update_notifications : bool = true
1313
var auto_update_timer : float = 300
1414
var owner_affiliations : Array = ["OWNER","COLLABORATOR","ORGANIZATION_MEMBER"]
1515

16+
var _loaded : bool = false
17+
1618
func _check_plugin_path():
1719
var dir = Directory.new()
1820
if not dir.dir_exists(plugin_path):
1921
dir.make_dir(plugin_path)
20-
if debug:
22+
if PluginSettings.debug:
2123
printerr("[GitHub Integration] >> ","made custom directory in user folder, it is placed at ", plugin_path)
2224

2325
func _ready():
@@ -40,6 +42,7 @@ func _ready():
4042
config_file.set_value("settings","auto_update_timer",auto_update_timer)
4143
config_file.set_value("settings","owner_affiliations",owner_affiliations)
4244
config_file.save(plugin_path+setting_file)
45+
_loaded = true
4346

4447
func set_debug(d : bool):
4548
debug = d

0 commit comments

Comments
 (0)