Skip to content

Commit 12c784e

Browse files
committed
make the connected to server notif toggleable
1 parent 66ef0fa commit 12c784e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

mod.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"geode": "4.3.1",
2+
"geode": "4.4.0",
33
"version": "v1.5.1",
44
"gd": {
55
"win": "2.2074",
@@ -310,6 +310,12 @@
310310
"type": "bool",
311311
"default": true
312312
},
313+
"server-notification": {
314+
"name": "Server Notification",
315+
"description": "Whether or not to notify when you <cy>connect or reconnect</c> to the GDUtils notification servers.",
316+
"type": "bool",
317+
"default": false
318+
},
313319
"previewIcons": {
314320
"name": "Preview Icons",
315321
"description": "Show some buttons to preview icons in the <cg>Icon Kit</c> for those who haven't been unlocked yet.",

src/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,9 @@ class EventHandler : public CCObject {
312312
if (scene->getChildrenCount() == 0) return;
313313
if (show_connected) {
314314
show_connected = false;
315-
Notification::create("Connected to Rate Server!", NotificationIcon::Success)->show();
315+
if (Mod::get()->template getSettingValue<bool>("server-notification")) {
316+
Notification::create("Connected to Rate Server!", NotificationIcon::Success)->show();
317+
}
316318
}
317319
auto layer = scene->getChildren()->objectAtIndex(0);
318320
if (ProcessLambdas::shouldProcessMenuHandler()) {

0 commit comments

Comments
 (0)