Fix default show name
This commit is contained in:
parent
3ee1937af5
commit
b3db96d485
1
main.cpp
1
main.cpp
@ -235,6 +235,7 @@ int main
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( show.empty() ) {
|
if ( show.empty() ) {
|
||||||
|
show = FSLib::canonical( path );
|
||||||
auto pos = show.find_last_of( '/' );
|
auto pos = show.find_last_of( '/' );
|
||||||
if ( pos != string::npos )
|
if ( pos != string::npos )
|
||||||
show = show.substr( ++pos );
|
show = show.substr( ++pos );
|
||||||
|
Loading…
Reference in New Issue
Block a user