mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-01 05:10:15 +02:00
Move to fonts plugin
This commit is contained in:
@@ -469,17 +469,8 @@ class _SettingsPageState extends State<SettingsPage> {
|
||||
onChanged: (useSystemFont) {
|
||||
if (useSystemFont) {
|
||||
NativeFeatures.loadSystemFont()
|
||||
.then((fontLoadRes) {
|
||||
if (fontLoadRes == 'ok') {
|
||||
settingsProvider.useSystemFont =
|
||||
true;
|
||||
} else {
|
||||
showError(
|
||||
ObtainiumError(tr(
|
||||
'systemFontError',
|
||||
args: [fontLoadRes])),
|
||||
context);
|
||||
}
|
||||
.then((val) {
|
||||
settingsProvider.useSystemFont = true;
|
||||
});
|
||||
} else {
|
||||
settingsProvider.useSystemFont = false;
|
||||
|
Reference in New Issue
Block a user