Skip to content

Commit

Permalink
Fixed numerous bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 committed Jan 27, 2025
1 parent c0267d2 commit 68866b8
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 15 deletions.
5 changes: 3 additions & 2 deletions src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -15295,12 +15295,13 @@ public static void PostMessage()
<visual>
<binding template="ToastGeneric">
<text>$($Localization.ThankfulToastTitle)</text>
<text>$($Localization.DonateToastTitle)</text>
</binding>
</visual>
<audio src="ms-winsoundevent:notification.default" />
<actions>
<action arguments="https://ko-fi.com/Q5Q51QUJC" content="$($Localization.DonateToastTitle)" activationType="protocol"/>
<action arguments="dismiss" content="" activationType="system"/>
<action content="Ko-fi" arguments="https://ko-fi.com/Q5Q51QUJC" activationType="protocol"/>
<action content="Boosty" arguments="https://boosty.to/sophiascript" activationType="protocol"/>
</actions>
</toast>
"@
Expand Down
5 changes: 3 additions & 2 deletions src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -11751,12 +11751,13 @@ public static void PostMessage()
<visual>
<binding template="ToastGeneric">
<text>$($Localization.ThankfulToastTitle)</text>
<text>$($Localization.DonateToastTitle)</text>
</binding>
</visual>
<audio src="ms-winsoundevent:notification.default" />
<actions>
<action arguments="https://ko-fi.com/Q5Q51QUJC" content="$($Localization.DonateToastTitle)" activationType="protocol"/>
<action arguments="dismiss" content="" activationType="system"/>
<action content="Ko-fi" arguments="https://ko-fi.com/Q5Q51QUJC" activationType="protocol"/>
<action content="Boosty" arguments="https://boosty.to/sophiascript" activationType="protocol"/>
</actions>
</toast>
"@
Expand Down
5 changes: 3 additions & 2 deletions src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -13116,12 +13116,13 @@ public static void PostMessage()
<visual>
<binding template="ToastGeneric">
<text>$($Localization.ThankfulToastTitle)</text>
<text>$($Localization.DonateToastTitle)</text>
</binding>
</visual>
<audio src="ms-winsoundevent:notification.default" />
<actions>
<action arguments="https://ko-fi.com/Q5Q51QUJC" content="$($Localization.DonateToastTitle)" activationType="protocol"/>
<action arguments="dismiss" content="" activationType="system"/>
<action content="Ko-fi" arguments="https://ko-fi.com/Q5Q51QUJC" activationType="protocol"/>
<action content="Boosty" arguments="https://boosty.to/sophiascript" activationType="protocol"/>
</actions>
</toast>
"@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15325,12 +15325,13 @@ public static void PostMessage()
<visual>
<binding template="ToastGeneric">
<text>$($Localization.ThankfulToastTitle)</text>
<text>$($Localization.DonateToastTitle)</text>
</binding>
</visual>
<audio src="ms-winsoundevent:notification.default" />
<actions>
<action arguments="https://ko-fi.com/Q5Q51QUJC" content="$($Localization.DonateToastTitle)" activationType="protocol"/>
<action arguments="dismiss" content="" activationType="system"/>
<action content="Ko-fi" arguments="https://ko-fi.com/Q5Q51QUJC" activationType="protocol"/>
<action content="Boosty" arguments="https://boosty.to/sophiascript" activationType="protocol"/>
</actions>
</toast>
"@
Expand Down
6 changes: 3 additions & 3 deletions src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -14270,16 +14270,16 @@ public static void PostMessage()
# Determines whether the app can be seen in Settings where the user can turn notifications on or off
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\AppUserModelId\Sophia -Name ShowInSettings -Value 0 -PropertyType DWord -Force

# Call toast notification ###
# Call toast notification
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
[Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] | Out-Null

[xml]$ToastTemplate = @"
<toast duration="Long" scenario="reminder">
<visual>
<binding template="ToastGeneric">
<text>Thank you for using Sophia Script ❤️ ❤️</text>
<text>Please donate, if you like this project 🕊️</text>
<text>$($Localization.ThankfulToastTitle)</text>
<text>$($Localization.DonateToastTitle)</text>
</binding>
</visual>
<audio src="ms-winsoundevent:notification.default" />
Expand Down
5 changes: 3 additions & 2 deletions src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -13108,12 +13108,13 @@ public static void PostMessage()
<visual>
<binding template="ToastGeneric">
<text>$($Localization.ThankfulToastTitle)</text>
<text>$($Localization.DonateToastTitle)</text>
</binding>
</visual>
<audio src="ms-winsoundevent:notification.default" />
<actions>
<action arguments="https://ko-fi.com/Q5Q51QUJC" content="$($Localization.DonateToastTitle)" activationType="protocol"/>
<action arguments="dismiss" content="" activationType="system"/>
<action content="Ko-fi" arguments="https://ko-fi.com/Q5Q51QUJC" activationType="protocol"/>
<action content="Boosty" arguments="https://boosty.to/sophiascript" activationType="protocol"/>
</actions>
</toast>
"@
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14309,12 +14309,13 @@ public static void PostMessage()
<visual>
<binding template="ToastGeneric">
<text>$($Localization.ThankfulToastTitle)</text>
<text>$($Localization.DonateToastTitle)</text>
</binding>
</visual>
<audio src="ms-winsoundevent:notification.default" />
<actions>
<action arguments="https://ko-fi.com/Q5Q51QUJC" content="$($Localization.DonateToastTitle)" activationType="protocol"/>
<action arguments="dismiss" content="" activationType="system"/>
<action content="Ko-fi" arguments="https://ko-fi.com/Q5Q51QUJC" activationType="protocol"/>
<action content="Boosty" arguments="https://boosty.to/sophiascript" activationType="protocol"/>
</actions>
</toast>
"@
Expand Down

0 comments on commit 68866b8

Please sign in to comment.