Skip to content

Commit

Permalink
Merge pull request #14 from Eeems/issue/9
Browse files Browse the repository at this point in the history
Fix crash when `/sys/pogo/status/lang` doesn't exist
  • Loading branch information
i-am-shodan authored Aug 1, 2023
2 parents e93cc67 + d2c6aab commit 5f14198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReTerm/Settings/TerminalSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static async Task<TerminalSettings> Get() {
bool layoutWasEmpty = settings.KeyboardKeyLookup == null;

var lang = string.Empty;
if (DeviceType.GetDevice() != Device.Emulator)
if (DeviceType.GetDevice() != Device.Emulator && File.Exists("/sys/pogo/status/lang"))
{
lang = await File.ReadAllTextAsync("/sys/pogo/status/lang");
}
Expand Down

0 comments on commit 5f14198

Please sign in to comment.