mirror of https://github.com/anoshenko/rui.git
Bug fixing
This commit is contained in:
parent
bf4876529a
commit
423ecd8274
|
|
@ -4,8 +4,8 @@
|
||||||
* Added GoogleFonts field to AppParams
|
* Added GoogleFonts field to AppParams
|
||||||
* Added functions: GetWhiteSpace, GetWordBreak, ScrollIntoViewIfNeeded, GetBackgroundColorPair,
|
* Added functions: GetWhiteSpace, GetWordBreak, ScrollIntoViewIfNeeded, GetBackgroundColorPair,
|
||||||
GetAccentColorPair, GetTextColorPair, GetTextLineColor, GetCaretColorPair, GetColumnSeparatorColorPair, ReloadListViewItem
|
GetAccentColorPair, GetTextColorPair, GetTextLineColor, GetCaretColorPair, GetColumnSeparatorColorPair, ReloadListViewItem
|
||||||
* Added ClientSession interface
|
* Added ClientStorage interface
|
||||||
* Added ClientSession, Popups, PopupDefault, PopupDefaultsSeq, and SetPopupDefaults methods to Session interface
|
* Added ClientStorage, Popups, PopupDefault, PopupDefaultsSeq, and SetPopupDefaults methods to Session interface
|
||||||
* Added ReloadListViewItem method to ListView interface
|
* Added ReloadListViewItem method to ListView interface
|
||||||
* Removed ClientItem, SetClientItem, RemoveClientItem, and RemoveAllClientItems methods from Session interface
|
* Removed ClientItem, SetClientItem, RemoveClientItem, and RemoveAllClientItems methods from Session interface
|
||||||
* Added DismissWithoutAnimation add SetHotKey methods to Popup interface
|
* Added DismissWithoutAnimation add SetHotKey methods to Popup interface
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,8 @@ type application struct {
|
||||||
params AppParams
|
params AppParams
|
||||||
createContentFunc func(Session) SessionContent
|
createContentFunc func(Session) SessionContent
|
||||||
sessions map[int]sessionInfo
|
sessions map[int]sessionInfo
|
||||||
sessionsMutex sync.Mutex
|
|
||||||
usedSessionIds []int
|
usedSessionIds []int
|
||||||
|
sessionsMutex sync.Mutex
|
||||||
}
|
}
|
||||||
|
|
||||||
func (app *application) getStartPage() string {
|
func (app *application) getStartPage() string {
|
||||||
|
|
@ -91,6 +91,9 @@ func (app *application) getCreateContentFunc() func(Session) SessionContent {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (app *application) nextSessionID() int {
|
func (app *application) nextSessionID() int {
|
||||||
|
app.sessionsMutex.Lock()
|
||||||
|
defer app.sessionsMutex.Unlock()
|
||||||
|
|
||||||
if app.usedSessionIds == nil {
|
if app.usedSessionIds == nil {
|
||||||
app.usedSessionIds = []int{}
|
app.usedSessionIds = []int{}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue