1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 15:32:50 -05:00

clipboard: fix file transfer & export functionality

- grants read to all installed flatpak apps
This commit is contained in:
bbedward
2026-01-26 17:58:06 -05:00
parent 705d5b04dd
commit 8499033221
30 changed files with 3940 additions and 838 deletions

View File

@@ -99,38 +99,32 @@ Item {
description: I18n.tr("Choose where notification popups appear on screen")
currentValue: {
if (SettingsData.notificationPopupPosition === -1)
return "Top Center";
return I18n.tr("Top Center", "screen position option");
switch (SettingsData.notificationPopupPosition) {
case SettingsData.Position.Top:
return "Top Right";
return I18n.tr("Top Right", "screen position option");
case SettingsData.Position.Bottom:
return "Bottom Left";
return I18n.tr("Bottom Left", "screen position option");
case SettingsData.Position.Left:
return "Top Left";
return I18n.tr("Top Left", "screen position option");
case SettingsData.Position.Right:
return "Bottom Right";
return I18n.tr("Bottom Right", "screen position option");
default:
return "Top Right";
return I18n.tr("Top Right", "screen position option");
}
}
options: ["Top Right", "Top Left", "Top Center", "Bottom Right", "Bottom Left"]
options: [I18n.tr("Top Right", "screen position option"), I18n.tr("Top Left", "screen position option"), I18n.tr("Top Center", "screen position option"), I18n.tr("Bottom Right", "screen position option"), I18n.tr("Bottom Left", "screen position option")]
onValueChanged: value => {
switch (value) {
case "Top Right":
if (value === I18n.tr("Top Right", "screen position option")) {
SettingsData.set("notificationPopupPosition", SettingsData.Position.Top);
break;
case "Top Left":
} else if (value === I18n.tr("Top Left", "screen position option")) {
SettingsData.set("notificationPopupPosition", SettingsData.Position.Left);
break;
case "Top Center":
} else if (value === I18n.tr("Top Center", "screen position option")) {
SettingsData.set("notificationPopupPosition", -1);
break;
case "Bottom Right":
} else if (value === I18n.tr("Bottom Right", "screen position option")) {
SettingsData.set("notificationPopupPosition", SettingsData.Position.Right);
break;
case "Bottom Left":
} else if (value === I18n.tr("Bottom Left", "screen position option")) {
SettingsData.set("notificationPopupPosition", SettingsData.Position.Bottom);
break;
}
SettingsData.sendTestNotifications();
}