mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-19 18:07:58 +00:00
better new profile name handling - fixes #4325
This commit is contained in:
@@ -8,6 +8,7 @@ import { SerialProfileSettingsComponent } from './components/serialProfileSettin
|
||||
import { SerialTabComponent } from './components/serialTab.component'
|
||||
import { SerialService } from './services/serial.service'
|
||||
import { BAUD_RATES, SerialProfile } from './api'
|
||||
import { profileEnd } from 'console'
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class SerialProfilesService extends ProfileProvider<SerialProfile> {
|
||||
@@ -92,6 +93,10 @@ export class SerialProfilesService extends ProfileProvider<SerialProfile> {
|
||||
}
|
||||
}
|
||||
|
||||
getSuggestedName (profile: SerialProfile): string {
|
||||
return this.getDescription(profile)
|
||||
}
|
||||
|
||||
getDescription (profile: SerialProfile): string {
|
||||
return profile.options.port
|
||||
}
|
||||
|
Reference in New Issue
Block a user