Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reveal in finder (show in explorer) option in metaedit dialog. #5646

Merged
merged 1 commit into from
Apr 25, 2020

Conversation

ecstrema
Copy link
Contributor

@ecstrema ecstrema commented Jan 27, 2020

Previously, the path shown in metaedit dialog had been set as selectable by mouse. I guess this was to be able to copy it into explorer or wherever needed. This is even faster.

It works on my machine, windows 10. However, it would be really appreciated if someone could test it under Macos and Linux.

@Jojo-Schmitz
Copy link
Contributor

Jojo-Schmitz commented Jan 27, 2020

It'd be "+ collect_artifacts" and would help Windows users only

mscore/metaedit.cpp Outdated Show resolved Hide resolved
mscore/metaedit.cpp Outdated Show resolved Hide resolved
@ecstrema ecstrema force-pushed the metareveal branch 3 times, most recently from 083f064 to 120cf58 Compare January 28, 2020 04:48
@dmitrio95 dmitrio95 added the strings Affects translatable strings label Jan 29, 2020
@ecstrema
Copy link
Contributor Author

ecstrema commented Feb 4, 2020

Is there any mac user that could test this branch? I can use a mac at school, but can't build MuseScore with it, and apparently collect_artifacts only works for mac.
Would there be a kind Linux user willing too?

@AntonioBL
Copy link
Contributor

Ciao Marr11317, I tested the PR under Linux Mint 19.3 (Cinnamon desktop environment) and it works, i.e. it opens the folder in Nemo file manager when clicking on the little folder icon in the Score Properties.

As expected, it doesn't work (it does nothing) with the default My_First_Score.mscx (residing in internal address :/data) and it emits in the console the following warning gio: file::/data: Operation not supported

@ecstrema ecstrema force-pushed the metareveal branch 3 times, most recently from a61ca98 to 8e9262a Compare February 10, 2020 16:56
@ecstrema
Copy link
Contributor Author

@dmitrio95 @anatoly-os This one is ready I think. It may conflict with #5633, so it'd be better to merge one of the two as soon as possible so that I can resolve the merge conflicts before springtime.
I'll be off for a few weeks then.

@ecstrema
Copy link
Contributor Author

This would also leave some time for translators before the next release. Both PRs have a few strings.

// openFileLocation
//---------------------------------------------------------

void MetaEditDialog::openFileLocation(const QString& path, QWidget* parent)
Copy link
Contributor

@igorkorsukov igorkorsukov Apr 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this method should be in a separate class, for example OpenFileLocation::open
So that in the future we can see what it is and reuse it in another place where it is needed.

In the same class, you can put the title definition logic (Explorer, Finder and etc)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@igorkorsukov
Copy link
Contributor

rebase needed

@ecstrema
Copy link
Contributor Author

rebase needed

rebased

@ecstrema ecstrema force-pushed the metareveal branch 3 times, most recently from 6af5e45 to d94021f Compare April 22, 2020 02:09
@anatoly-os anatoly-os merged commit b88d95a into musescore:master Apr 25, 2020
@Jojo-Schmitz
Copy link
Contributor

Jojo-Schmitz commented Apr 26, 2020

Translations don't work, the strings show on Transifex but even if translated there and translations updated they still show untranslated. Came up in the MuseScore translators chat and I'm looking into fixing this... see #5994

@ecstrema ecstrema deleted the metareveal branch April 26, 2020 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
strings Affects translatable strings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants