mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 13:32:50 -05:00
themes: incorporate theme registry, browser, dms URI scheme handling
This commit is contained in:
@@ -510,6 +510,22 @@ Item {
|
||||
Connections {
|
||||
target: DMSService
|
||||
function onOpenUrlRequested(url) {
|
||||
if (url.startsWith("dms://theme/install/")) {
|
||||
var themeId = url.replace("dms://theme/install/", "").split(/[?#]/)[0];
|
||||
if (themeId) {
|
||||
PopoutService.pendingThemeInstall = themeId;
|
||||
PopoutService.openSettingsWithTab("theme");
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (url.startsWith("dms://plugin/install/")) {
|
||||
var pluginId = url.replace("dms://plugin/install/", "").split(/[?#]/)[0];
|
||||
if (pluginId) {
|
||||
PopoutService.pendingPluginInstall = pluginId;
|
||||
PopoutService.openSettingsWithTab("plugins");
|
||||
}
|
||||
return;
|
||||
}
|
||||
browserPickerModal.url = url;
|
||||
browserPickerModal.open();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user