Linux crash fixes
This commit is contained in:
@@ -873,6 +873,7 @@ script = ExtResource("12_073mb")
|
||||
|
||||
[node name="SettingsHolder" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
@@ -880,6 +881,7 @@ anchor_bottom = 0.5
|
||||
offset_top = -294.0
|
||||
offset_bottom = -294.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="SettingsPopup" type="Control" parent="SettingsHolder"]
|
||||
visible = false
|
||||
|
||||
@@ -414,10 +414,12 @@ func _process(_delta: float) -> void:
|
||||
print("yoo")
|
||||
@warning_ignore("integer_division")
|
||||
UpdateSplashes()
|
||||
if DiscordRPC.get_is_discord_working():
|
||||
print(DiscordRPC.get_current_user()["username"])
|
||||
print(TimeSpentListening)
|
||||
var LText = SplashStrings.pick_random()
|
||||
DiscordRPC.large_image_text = LText
|
||||
if DiscordRPC.get_is_discord_working():
|
||||
DiscordRPC.refresh()
|
||||
# "59:59 remaining" timestamp for the activity
|
||||
if music_player.playing:
|
||||
@@ -470,6 +472,7 @@ func _process(_delta: float) -> void:
|
||||
|
||||
|
||||
func UpdateSplashes():
|
||||
if DiscordRPC.get_is_discord_working():
|
||||
SplashStrings = ["Total listening time: %s!" % str(str(int(TimeSpentListening/60)/60 )
|
||||
+ "h : " + str((int(TimeSpentListening) / 60) % 60) + "m : " +
|
||||
str(int(TimeSpentListening) % 60) + "s"),
|
||||
|
||||
Reference in New Issue
Block a user