mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 18:16:31 +03:00
UIAbstractView::findRowWithText now accepts FindRowWithTextMatchKind instead of a boolean to force equal comparison.
Refactor of some examples, added a new hello world example but using UIApplication. ecode: Fixed how it filters the `sbt`, `srt` and `sb` universal locator switches.
This commit is contained in:
@@ -447,7 +447,8 @@ void App::openFontDialog( std::string& fontPath, bool loadingMonoFont, bool term
|
||||
FileSystem::fileRemoveFileName( absoluteFontPath ) );
|
||||
if ( dialog->getMultiView() ) {
|
||||
ModelIndex index = dialog->getMultiView()->getListView()->findRowWithText(
|
||||
FileSystem::fileNameFromPath( fontPath ), true, true );
|
||||
FileSystem::fileNameFromPath( fontPath ), true,
|
||||
UIAbstractView::FindRowWithTextMatchKind::Equals );
|
||||
if ( index.isValid() )
|
||||
dialog->runOnMainThread(
|
||||
[dialog, index]() { dialog->getMultiView()->setSelection( index ); } );
|
||||
|
||||
Reference in New Issue
Block a user