diff --git a/src/main.qml b/src/main.qml index 8847370..ac1a08d 100644 --- a/src/main.qml +++ b/src/main.qml @@ -1,879 +1,878 @@ import QtQuick 2.13 import QtQuick.Controls 2.13 import QtQuick.Layouts 1.3 import org.kde.kirigami 2.7 as Kirigami import org.kde.mauikit 1.0 as Maui import org.kde.mauikit 1.1 as MauiLab import QtQml.Models 2.3 import "widgets" import "widgets/views" Maui.ApplicationWindow { id: root title: currentTab ? currentTab.title : "" Maui.App.description: qsTr("Index allows you to navigate your computer and preview multimedia files.") Maui.App.iconName: "qrc:/assets/index.svg" Maui.App.webPage: "https://mauikit.org" Maui.App.donationPage: "https://invent.kde.org/kde/index-fm" Maui.App.reportPage: "https://github.com/Nitrux/maui" - Maui.App.enableCSD: Maui.Handy.isLinux background.opacity: translucency ? 0.5 : 1 readonly property url currentPath : currentBrowser ? currentBrowser.currentPath : "" readonly property Maui.FileBrowser currentBrowser : currentTab && currentTab.browser ? currentTab.browser : null property alias dialog : dialogLoader.item property alias previewer : _previewer property alias selectionBar : _selectionBar property alias shareDialog : _shareDialog property alias openWithDialog : _openWithDialog property alias tagsDialog : _tagsDialog property alias currentTabIndex : _browserList.currentIndex property alias currentTab : _browserList.currentItem property bool searchBar: false property bool selectionMode: false property bool showHiddenFiles: false property bool showThumbnails: true property bool showStatusBar: false property bool singleClick : Maui.FM.loadSettings("SINGLE_CLICK", "BROWSER", Kirigami.Settings.isMobile ? true : Maui.Handy.singleClick) == "true" property bool restoreSession: Maui.FM.loadSettings("RESTORE_SESSION", "BROWSER", false) == "true" property bool supportSplit :!Kirigami.Settings.isMobile && root.width > 600 property bool translucency : Maui.FM.loadSettings("TRANSLUCENCY", "UI", Maui.Handy.isLinux) == "true" property int iconSize : Maui.FM.loadSettings("ICONSIZE", "UI", Maui.Style.iconSizes.large) onCurrentPathChanged: { syncSidebar(currentBrowser.currentPath) } onCurrentBrowserChanged: { _viewTypeGroup.currentIndex = currentBrowser.settings.viewType } onClosing: { close.accepted = !root.restoreSession var tabs = [] for(var i = 0; i