From 8749bb7180c58812889d14bb03fd6917f704f4a9 Mon Sep 17 00:00:00 2001 From: Dervex Date: Wed, 20 Nov 2024 23:19:16 +0100 Subject: [PATCH] Revert `InitialEnabled` change and utilize `RunService:IsRunning()` --- src/.src.server.luau | 6 ++++++ src/App/.src.luau | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/.src.server.luau b/src/.src.server.luau index effee10..456b404 100644 --- a/src/.src.server.luau +++ b/src/.src.server.luau @@ -1,4 +1,10 @@ --!strict +local RunService = game:GetService("RunService") + +if RunService:IsRunning() then + return +end + local Config = require(script.Config) local Log = require(script.Log) local App = require(script.App) diff --git a/src/App/.src.luau b/src/App/.src.luau index 02be80f..ee7ce00 100644 --- a/src/App/.src.luau +++ b/src/App/.src.luau @@ -99,7 +99,6 @@ function App.new() Widget { Name = "Argon", MinimumSize = peek(self.rootSize), - InitialEnabled = false, Enabled = isOpen, [OnChange "Enabled"] = function(isEnabled)