mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Do not handle setting page to sharing page if sharing not available
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
ea5397865d
commit
3fda519050
@ -47,7 +47,11 @@ Page {
|
||||
Connections {
|
||||
target: Systray
|
||||
function onShowFileDetailsPage(fileLocalPath, page) {
|
||||
if(fileLocalPath === root.localPath) {
|
||||
if (!root.fileDetails.sharingAvailable && page == Systray.FileDetailsPage.Sharing) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (fileLocalPath === root.localPath) {
|
||||
switch(page) {
|
||||
case Systray.FileDetailsPage.Activity:
|
||||
swipeView.currentIndex = fileActivityView.swipeIndex;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user