mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-12 12:40:08 +08:00
24 lines
404 B
CoffeeScript
24 lines
404 B
CoffeeScript
|
_ = require 'underscore'
|
||
|
ipc = require 'ipc'
|
||
|
Reflux = require 'reflux'
|
||
|
|
||
|
SettingsActions = require './settings-actions'
|
||
|
|
||
|
module.exports =
|
||
|
SettingsStore = Reflux.createStore
|
||
|
|
||
|
init: ->
|
||
|
@_tabIndex = 0
|
||
|
@listenTo(SettingsActions.selectTabIndex, @_onTabIndexChanged)
|
||
|
|
||
|
# Getters
|
||
|
|
||
|
tabIndex: ->
|
||
|
@_tabIndex
|
||
|
|
||
|
# Action Handlers
|
||
|
|
||
|
_onTabIndexChanged: (idx) ->
|
||
|
@_tabIndex = idx
|
||
|
@trigger(@)
|