Skip to content

Commit d6fb864

Browse files
committed
a quick fix so people dont uh yeah
1 parent 5ba009c commit d6fb864

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"id": "firee.object-workshop",
1010
"name": "Object Workshop",
11-
"version": "v1.4.1",
11+
"version": "v1.4.2",
1212
"developer": "Firee",
1313
"description": "Download, upload, or find custom objects made by other creators!",
1414
"resources": {

src/config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//#define HOST_URL "http://localhost:3000"
44
#define DASHEND_URL "https://dashend.firee.dev/api/v1"
55
//#define DASHEND_URL "http://localhost:3001/api/v1"
6-
#define USER_AGENT "ObjectWorkshop/1.4.0"
6+
#define USER_AGENT "ObjectWorkshop/1.4.2"
77

88
#define DASHAUTH 1
99
#define GDAUTH 1

src/ui/auth/AuthMenu.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ geode::createQuickPopup(
5252
*/
5353

5454
void AuthMenu::onDashAuth(CCObject*) {
55+
if (auto gjam = GJAccountManager::sharedState()) {
56+
if (gjam->m_accountID == 0) {
57+
return FLAlertLayer::create("Error", "You are not <cy>signed in</c>! The only option you can use is <cg>Do Later</c>", "OK")->show();
58+
}
59+
}
5560
#ifdef DASHAUTH
5661
geode::createQuickPopup(
5762
"Note",
@@ -219,6 +224,11 @@ void AuthMenu::genAuthToken(AuthMethod method, std::string token, bool showFLAle
219224
}
220225
}
221226
void AuthMenu::onGDAuth(CCObject*) {
227+
if (auto gjam = GJAccountManager::sharedState()) {
228+
if (gjam->m_accountID == 0) {
229+
return FLAlertLayer::create("Error", "You are not <cy>signed in</c>! The only option you can use is <cg>Do Later</c>", "OK")->show();
230+
}
231+
}
222232
#ifdef GDAUTH
223233
geode::createQuickPopup(
224234
"Warning",

0 commit comments

Comments
 (0)